/crud-blog-workshop

Node.js, Express, PostgreSQL

Primary LanguageJavaScript

CRUD Blog - Project Instructions & Requirements

https://gist.github.com/ekopelevich/9685c0f5d2f2ffad22bbf6de204b9e1a

Today, you're going to build a blog. It will have users, posts and comments. The users will have many posts. The posts will have many comments. The comments will also be associated with users.

General Instructions:

Setup and planning

  1. Come up with a name for your blog
  2. Wireframe each view
  3. Create a data model
  4. Generate an Express app with handlebars
  5. Don't forget npm i
  6. Set up a git repo and a .gitignore file
  7. Install and configure Knex and your local database
  8. Install and configure the dotenv module
  9. Create routes and handlebar files for each view
  10. Generate migration files (think about the order that you create these in)
  11. Generate seed files (think about the order of, not only running the files, but deleting tables within the seed files)
  12. Run your migrations and seed files
  13. Commit
  14. Deploy your app and database to Heroku
  15. Run your migrations and seeds on Heroku

Write CRUD for each of your routes

  1. Scaffold out the 7 routes for each of your resources
  2. Write the CRUD knex statements for each route

Style your blog

  1. Personalize your blog with some style.