1.6 KiB
1.6 KiB
Local installation
Before installing Consul and having it up and running make sure you all prerequisites installed.
- First, clone the Consul Github repository:
git clone https://github.com/consul/consul.git
- Go to the project folder and install the gems stack using Bundler:
cd consul
bundle install
- Copy the environment example configuration files inside new readable ones:
cp config/database.yml.example config/database.yml
cp config/secrets.yml.example config/secrets.yml
And setup database credentials with your consul user in your new database.yml file.
- Run the following Rake tasks to create and fill your local database with the minimum data to run the application:
bin/rake db:create
bin/rake db:setup
bin/rake db:dev_seed
RAILS_ENV=test bin/rake db:setup
- Check everything is fine by running the test suite (beware it takes some long minutes):
bundle exec rspec
- Now you have all set, run the application:
rails s
Congratulations! Your local Consul application will be running now at http://localhost:3000.
In case you want to access the local application as admin, a default user verified and with admin permissions was created by the seed files with username admin@consul.dev and password 12345678.
If you need an specific user to perform actions such as voting without admin permissions, a default verified user is also available with username verified@consul.dev and password 12345678.