This is a repository of Ruby on Rails based backend for eTraction mobile app. eTraction is an application for people traveling by train which gives them more information and some entertainment during travel.
You will need the following things properly installed on your computer:
- Git
- Ruby (version >= 2.4)
- Ruby on Rails (version >= 5.0)
- PostgreSQL
- Heroku CLI (for administrating purpose)
git clone https://github.com/gracz21/eTraction.git
- change into the new directory
- make sure the user you've listed in
database.yml
is created for postgres, e.g. :createuser -s -r user
for user named user bundle install
to install dependenciesrake db:setup
to prepare and seed database
Server used in development as well as production is Puma.
rails server
- visit your app at http://localhost:3000
rspec
to run all testsrspec path_to_specific_test_file
to run specified test
After each remote repo change follow this steps:
git pull
bundle install
rake db:migrate