Skip to content

Latest commit

 

History

History
39 lines (36 loc) · 1.57 KB

Installation.md

File metadata and controls

39 lines (36 loc) · 1.57 KB

Installation

Installation (macOS)

Run the following instructions in Terminal.

  1. Get Homebrew
  2. Install dependencies
    brew install postgresql@9.6 mysql rbenv ruby-build nvm openssl yarn
  3. Checkout repo
    git clone git@github.com:AppCamps/www.git
  4. Change into project directory
    cd www
  5. Install ruby & node
    rbenv install && nvm install
  6. Install bundler & needed gems
    gem install bundler && bundle install --path vendor/bundle
  7. Install node modules
    yarn install
  8. Copy .env.example afterwards and adjust env variables
    cp .env.example .env && $EDITOR .env
  9. Configure config/database.yml cp config/database.yml.example config/database.yml && $EDITOR config/database.yml
  10. Setup environment
    bin/rails db:environments:set RAILS_ENV=development && bin/rails db:environments:set RAILS_ENV=test
  11. Setup database & create databases
    bundle exec rake db:setup && RAILS_ENV=test bundle exec rake db:setup
  12. Run tests to see if everything is working
    bundle exec rspec && yarn test
  13. Install invoker (you will be asked for your computer password) gem install invoker && sudo invoker setup --tld localhost
  14. Generate localhost certificates and install them dev/create-certificate
  15. Add the certificate to you Keychain (Chrome/Safari)
    Install Root Certificate
  16. Start dev server
    dev/start
  17. Open your browser
    [https://teach.appcamps.localhost]