Skip to content

This is an api for a bloodbank application, it contains endpoints for the front end application in JSON format

Notifications You must be signed in to change notification settings

Anny85-code/bloodbankapp-backend

Repository files navigation

BLOODBANKAPP-API

This is an api for a bloodbank application, it contains endpoints for the front end application in JSON format

Install

Clone the repository

git clone https://github.com/Anny85-code/bloodbankapp-backend.git
cd bloodbankapp-backend

Check your Ruby version

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

Install dependencies

Using Bundler

bundle 

Set environment variables

Initialize the database

rails db:create db:migrate db:seed

Add heroku remotes

Using Heroku CLI:

heroku git:remote -a bloodbank-backend
heroku git:remote --remote heroku-staging -a bloodbank-backend-staging

Server

rails s

Deploy

With Heroku pipeline (recommended)

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

Directly to production (not recommended)

Push to Heroku production remote:

git push heroku

About

This is an api for a bloodbank application, it contains endpoints for the front end application in JSON format

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published