Giter Club home page Giter Club logo

webappnodeexpresmong's Introduction

// using nodemon nodemon watches existing files for updates if you have a new file, have to restart the server

// update package.json - main to server.js

// using express

// using hogan npm i hjs --save

// using path which is native to nodejs

// using mongoose with mongodb npm i mongoose --save

// on first POST, mongo returns _id and __v (version) {"email":"Justin","password":"houais","_id":"5c94ebcc593d9436440ea98a","timestamp":"2019-03-22T14:06:04.198Z","__v":0}

// using passport for login via FB, Google, etc (we're just using basic ) npm i passport --save // sub-library npm i passport-local --save Notes - each login flow is called a strategy, we're doing 'local strategy'

// session library, saves session in a cookie npm i express-session --save

// hash the password so it's secure, not text // provides hashing functions npm i bcryptjs --save

// add items into hjs, then into router, then into db, define Item model

// create admin page to add / remove items start in views, copy home, then create a route to support the page

// Win powershell create file https://docs.microsoft.com/en-us/powershell/scripting/overview?view=powershell-6 New-Item -Path . -Name "testfile1.txt" -ItemType "file" -Value "This is a text string."

webappnodeexpresmong's People

Watchers

James Cloos avatar

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.