mikesprague / that-be-delicious

My version of the "Now That's Delicious" app built during the Learn Node course by @wesbos

Home Page:https://that-be-delicious.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is this?

This is my version of the "Now That's Delicious" app built during the Learn Node by @wesbos.

What's Different?

I followed along for the most part, here's where I diverted:

  • All dependencies (including dev) are now current as of time of writing
  • Dependency updates that required syntax changes:
    • es6-promisify
      • Before: promisify(User.register, User) After: promisify(User.register.bind(User))
      • Before: const promisify = require('es6-promisify'); After: const { promisify } = require('es6-promisify');
    • mongoose
      • Added to prevent deprecation warnings:
        • start.js and data/load-sample-data.js
          • mongoose.set('useCreateIndex', true);
          • mongoose.set('useNewUrlParser', true);
          • mongoose.set('useFindAndModify', false);
      • Changed to prevent deprecation warning:
        • data/load-sample-data.js
          • Before: await Store.remove();
          • After: await Store.deleteMany();
    • body-parser
      • Removed body-parser from project, build into Express now
    • now
      • Removed now from project, not deploying with it so not needed
    • moment
  • There were also a handful of code changes unrelated to dependencies:
    • I will list them here when I have time

Sample Data

To load sample data, run the following command in your terminal:

npm run sample

If you have previously loaded in this data, you can wipe your database 100% clean with:

npm run blowitallaway

That will populate 16 stores with 3 authors and 41 reviews. The logins for the authors are as follows:

Name Email (login) Password
Wes Bos wes@example.com wes
Debbie Downer debbie@example.com debbie
Beau beau@example.com beau

About

My version of the "Now That's Delicious" app built during the Learn Node course by @wesbos

https://that-be-delicious.herokuapp.com


Languages

Language:JavaScript 50.0%Language:SCSS 28.6%Language:Pug 14.7%Language:CSS 6.7%