-
Clone repo
-
Install postgresql and create super user in it (matching your OS user name)
-
Install gems
bundle update -
Install
overcommitfor GIT commit hooks -
Install GIT hooks with
overcommit:overcommit --install -f -
Run
overcommit --signto trust the hooks in this repository. -
Setup database and run migrations
rails db:create db:migrate -
Install bower (if not yet) and download js libs
npm install -g bower bower install -
Run server
bundle exec rails server
Docker-based development environment requires docker-compose >= 1.9.0.
Visit https://docs.docker.com/compose/install/ for more details.
Use bin/dev helper script for docker-compose management. Run bin/dev to see some commands to get started.
Run / Stop (daemon mode)
$ bin/dev up -d
$ bin/dev stopForwarded ports and access:
- Web: http://localhost:3000 (host machine).
- Database:
postgres://postgres@localhost:6543(host machine).
| Action | Command |
|---|---|
| Bundler | bin/dev exec app bundle install |
| Setup DB | bin/dev exec app rails db:create db:migrate |
| Console | bin/dev exec app rails c |
Use the following guides for getting things done, programming well, and programming in style.