BANKI

15 flashcards · Computer Science · by Hunter Burningham

  1. NPM package Express

    A web framework makes routes

  2. Connect-mongo

    store sessions in db so when server resets, dont get logged out

  3. express-handlebars

    templating engine

  4. express-session

    for sessions and cookies

  5. dot-env

    config and environment variable secrets

  6. method-override

    allows put and delete

  7. moment

    used to format dates

  8. morgan

    logging package

  9. passport

    authentication package

  10. nodemon

    dev dependency, installed via npm -i -D nodemon cross-env (different depending on mac or windows hence cross-env)

  11. start in prod

    "cross-env NODE_ENV=production node app"

  12. start in dev

    "cross-env NODE_ENV=production nodemon app"

  13. exit with failure

    process.exit(1)

  14. mongoose returns a promise so its best to use

    async/await

  15. Lexical Environment

    Where the code sits, and what surronds it. In javascript, the lexical environment is important. The compiler cares where your code sits.