- Ruby >= 2.5.1
- PostgreSQL 10.4
- node.js 6.0.0+
brew update
brew install postgres
brew install yarn
gem install bundler
sudo apt-get update
sudo apt-get install postgresql postgresql-contrib postgresql-server-dev-all cmake
sudo apt-get install yarn
gem install bundler
[WIP]
bundle install
yarn install
cp config/database.example.yml config/database.yml
echo "POSTGRESQL_PASSWORD='YourPassword'" >> .env
echo "POSTGRESQL_USERNAME='YourUserName'" >> .env
bin/rails db:setup
bin/rails db:migrate
bin/rails db:seed
We use rspec framework to test our rails application. To test you can run:
bundle exec rspec
To test our js files we use jest framework. Run with:
yarn test
And if you change any component, you should update the snapshot with:
yarn test -u <path_to_test_file_changed>
Run the local server at http://localhost:3000 with:
bin/rails s
Run tests with:
rspec
#Deploy
[WIP]