Skip to content

gianbelinche/moscu-job-vacancy

Repository files navigation

Job Vacancy Application

build status

PostgreSQL setup

Follow these steps to initialize the PostgreSQL databases:

  1. 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
  2. Create development and test databases by running: sudo -u postgres psql --dbname=postgres -f ./create_dev_and_test_dbs.sql

Padrino application setup

  1. Run bundle install --without staging production, to install all application dependencies
  2. Run RACK_ENV=test bundle exec rake, to run all tests and ensure everything is properly setup
  3. Run RACK_ENV=development bundle exec rake db:migrate db:seed, to setup the development database
  4. 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!

Some conventions to work on it:

  • 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

Using Docker-compose for development

$ docker-compose run --rm webapp bundle exec rake db:migrate
$ docker-compose up -d
$ docker-compose exec webapp /bin/bash