TripBook
The TripBook Project.
Requirements
System
- Linux or macOS
- Ruby 2.4
- Node.js 6.0+
- ImageMagick
Database
- PostgreSQL 9.5+
Backing Services
- Facebook
- Env
FB_APP_ID
,FB_APP_SECRET
- Needs to enable FB Login, the OAuth redirect URI is:
[your_host]/users/auth/facebook/callback
- Env
Setup
- Run
bin/setup
. - Edit
.env
. - Edit
config/database.yml
and runbin/rails db:setup
if needed.
Development
Tasks
bin/rake js:install
: Install JavaScript dependencies using NPM.bin/rake erd:generate
: Generate ERD diagram for domain models (requires Graphviz 2.22+).bin/rake syntax:check
: Check the code syntax using Rubocop.bin/rake syntax:check_js
: Check JS code syntax using ESLint.bin/rake syntax:auto_correct
: Auto correct the code syntax using Rubocop.bin/rake staging:bootstrap
: Fill the database with testing data.
Guard
Run bin/guard
for autotest and livereload.