You have 3 hours to complete this assessment
Your mission is to work through each of the included test suites one at a time. If you successfully pass each test, you should have full CRUD routes and database functionality for Posts
and their nested resource Comments
.
It is not necessary to build any client side functionality for this exercise (forms).
This is a back end only exercise and you will be sending json
responses from your routes instead of rendering templates. In your routes, simply res.json
or redirect
to the proper route.
npm install
nodemon
mocha
Work through your tests in this order:
test_posts
test_post_comments
Work through tests one at a time by removing the x
from the next xit
. Each time you pass a test add, commit, push
.
- Be able to write nested CRUD routes using TDD (Test Driven Development)
- Be able to write RESTful routes
- Be able to write RESTful nested routes
- Be able to use knex with Postgres
- Be able to use knex migrations to create database schemas
- Be able to deploy a CRUD app to Heroku
- Be able to create database schemas on Heroku using migrations
POSTS SCHEMA
id
author
body
REVIEWS SCHEMA
id
post_id
commenter
body
index.js
posts.js
comments.js
After passing all tests, deploy the app to Heroku and use migrations to create your production schema.
Add the url to your deployed site to this readme and submit a pull request.
Taylor's URL IS https://postdevelopmentsmith.herokuapp.com/