Techtreino-api is a rails API application
-
System dependencies
- A Postgres database server; typically installed using home brew
brew install postgresql
rvmorrbenvfor Ruby Version management.ruby-versionfile should auto load correct ruby version
- A Postgres database server; typically installed using home brew
-
Setup
bundlerails db:create db:schema:load db:migrate db:seed- Start the application:
rails s
- How to run the test suite
rakewill run the default rake task which runs the specs and lint check- Alternatively they can be run independently:
rspec specrubocop
NOTE: depending on your environment you may need to prefix your rails commands with bundle exec or use bin/rails
While pairing you may want to use git pair for your commits, it requires installing the gem
gem install pivotal_git_scripts- See: https://github.com/pivotal/git_scripts
Every email sent in developer env will open a tab in your browser, through letter_opener
Deployment is handled automatically by CI, which pushes everything to heroku and runs migrations.
- PORT
- Required in production, uses default for other environments
- SECRET_KEY_BASE
- Required in production, uses default for other environments
- SMTP_USER_NAME
- Required for production environment
- SMTP_PASSWORD
- Required for production environment
- CLIENT_URL
- Required for production environment
- SENTRY_DSN
- Required for production environment