And setup database credentials with your consul user in your new database.yml file.
1.
Run the following Rake tasks to create and fill your local database with the minimum data needed to run the application:
1
bin/rake db:create
2
bin/rake db:setup
3
bin/rake db:dev_seed
4
bin/rake db:test:prepare
Copied!
1.
Check everything is fine by running the test suite (beware it might take more than an hour):
1
bin/rspec
Copied!
1.
Now you have all set, run the application:
1
bin/rails s
Copied!
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[email protected] and password12345678.
If you need an specific user to perform actions such as voting without admin permissions, a default verified user is also available with username[email protected] and password12345678.