Backend app for SoloCoin app. API documentation here https://documenter.getpostman.com/view/494437/SzYW1z2B
This app currently works with:
- Ruby 2.5.1
- Rails 5.2.x
- PostgreSQL
- Redis
git clone https://github.com/coronagoapp/solocoin-backend
cd solocoin-backend
ruby -v
The output should start with something like ruby 2.5.1
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 2.5.1
Using Bundler:
bundle install
Using Figaro:
Rename application.yml.local to application.yml in /config directory for local environment.
bundle exec rails db:setup db:seed
This will setup data for your local development and testing, look the data here to start using it.
bundle exec rails development_tasks:seed_dev_data
bundle exec foreman start
This application leverages terraform to manage cloud resources. See the Infrastructure Documentation for more information on resource creation.
This needs to be run only once when new machines are added, app can be deployed using capistrano for subsequent deployments.
For test environment
ansible-playbook ansible/site.yml -i ansible/inventory/qa01 --ask-vault-pass --extra-vars environment_name=qa01
For production environment (Don't deploy without admin's approval)
ansible-playbook ansible/site.yml -i ansible/inventory/prod --ask-vault-pass --extra-vars environment_name=prod
For test environment
cap qa01 deploy
For production environment (Don't deploy without admin's approval)
cap production deploy
- Look for un-assigned issues here
- Ask questions and clarifications by commenting on the issue
- Implement the feature/fix and open a pull request