This is an api for a bloodbank application, it contains endpoints for the front end application in JSON format
git clone https://github.com/Anny85-code/bloodbankapp-backend.git
cd bloodbankapp-backend
ruby -v
The ouput 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
rails db:create db:migrate db:seed
Using Heroku CLI:
heroku git:remote -a bloodbank-backend
heroku git:remote --remote heroku-staging -a bloodbank-backend-staging
rails s
Push to Heroku staging remote:
git push heroku-staging
Go to the Heroku Dashboard and promote the app to production or use Heroku CLI:
heroku pipelines:promote -a project-staging
Push to Heroku production remote:
git push heroku