Giter VIP home page Giter VIP logo

crud-knex-heroku-assessment-t2's Introduction

READ THE README ------ THAT'S WHY IT'S CALLED A "README"

OVERVIEW

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.

Set Up

npm install
nodemon

Run Tests

mocha

Work through your tests in this order:

  1. test_posts
  2. 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.

Objectives

  • 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

Your App Should Use:

Knex Migrations

POSTS SCHEMA

id
author
body

REVIEWS SCHEMA

id
post_id
commenter
body

Separate Route Files

  • index.js
  • posts.js
  • comments.js

SUBMIT A PULL REQUEST WITH YOUR HEROKU LINK

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/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.