RVM (ruby version manager) lets us switch between ruby interpreters and isolate gem installations.
- Install rvm
cd
to the directory this repository is in.- Install ruby via
rvm install $(cat .ruby-version)
. gem install bundler
bundle install
bin/rails server
- The rails server should now be running and accepting requests. For example, to create a new user:
curl -d '{"email":"test@email.com", "username": "test_username", "password":"test_password", "fullname": "Michael Hagar" }' -H "Content-Type: application/json" -X POST http://localhost:3000/api/user
bin/rspec