This repository contains the API that will be used on the bot repository. The Heroku servers and Telegram bots have been disabled to reduce unnecessary upkeep costs.
- We create feature-branch and merge-request from issue (this one has its target branch pointing to develop branch)
- Complete and validate the issue, merging the feature-branch into staging branch (this triggers the deploy to Heroku staging environment)
- Close the issue by merging it into branch develop.
- Merge branch develop into master when iteration its complete (this triggers the deploy to Heroku production environment)
Follow these steps to initialize the PostgreSQL databases:
- Install PostgreSQL if needed. On Ubuntu you can do this by running:
sudo apt-get install -y postgresql-9.5 postgresql-contrib postgresql-server-dev-9.5
- Create development and test databases by running:
sudo -u postgres psql --dbname=postgres -f ./create_dev_and_test_dbs.sql
- Run bundle install --without staging production, to install all application dependencies
- Run bundle exec rake, to run all tests and ensure everything is properly setup
- Run RACK_ENV=development bundle exec rake db:migrate db:seed, to setup the development database
- Run bundle exec padrino start -h 0.0.0.0, to start the application
- Follow existing coding conventions
- Use feature branch
- Add descriptive commits messages in English to every commit
- Write code and comments in English
- Use REST routes ======= Health API - Alto Jardin ========================
- We create feature-branch and merge-request from issue (this one has its target branch pointing to develop branch)
- Complete and validate the issue, merging the feature-branch into staging branch (this triggers the deploy to Heroku staging environment)
- Close the issue by merging it into branch develop.
- Merge branch develop into master when iteration its complete (this triggers the deploy to Heroku production environment)
Follow these steps to initialize the PostgreSQL databases:
- Install PostgreSQL if needed. On Ubuntu you can do this by running:
sudo apt-get install -y postgresql-9.5 postgresql-contrib postgresql-server-dev-9.5
- Create development and test databases by running:
sudo -u postgres psql --dbname=postgres -f ./create_dev_and_test_dbs.sql
- Run bundle install --without staging production, to install all application dependencies
- Run bundle exec rake, to run all tests and ensure everything is properly setup
- Run RACK_ENV=development bundle exec rake db:migrate db:seed, to setup the development database
- Run bundle exec padrino start -h 0.0.0.0, to start the application
- Follow existing coding conventions
- Use feature branch
- Add descriptive commits messages in English to every commit
- Write code and comments in English
- Use REST routes