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 RACK_ENV=test 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
For authenticating as an offerer you can use the credentials offerer@test.com / StrongPa$sw0rd!
- 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
$ docker-compose run --rm webapp bundle exec rake db:migrate
$ docker-compose up -d
$ docker-compose exec webapp /bin/bash