- Fork and clone this repository.
- Change into the new directory.
- Install dependencies with
bundle install
- Create a
.env
for sensitive settings (touch .env
). - Generate new
development
andtest
secrets (bundle exec rake secret
). - Store them in
.env
with keysSECRET_KEY_BASE_<DEVELOPMENT|TEST>
respectively. - Create and checkout a new branch, named
response
. - Follow the directions given in lib/diagnostic.rb.
- Before the allotted time is up, push to your fork and issue a pull request.
Your pull request description should contain a "fist to five" for comfort and clarity. Additionally, you should mention the resources you used to help you complete this diagnostic. For example:
Comfort: 3
Clarity: 3
I used Google and my class notes to help with this diagnostic.
Developers should run these often!
bin/rake routes
lists the endpoints available in your API.bin/rake test
runs automated tests.bin/rails console
opens a REPL that pre-loads the API.bin/rails db
opens your database client and loads the correct database.bin/rails server
starts the API.scripts/*.sh
run variouscurl
commands to test the API. See below.
You may wish to refer to "How do I submit diagnostics?" and other FAQs related to forking, cloning, and pull requests.
You may use any resource other than each other to complete this diagnostic. This includes referencing talk materials, appropriate documentation, and searching for help online.
- All content is licensed under a CCBYNCSA 4.0 license.
- All software code is licensed under GNU GPLv3. For commercial use or alternative licensing, please contact [email protected].