Giter VIP home page Giter VIP logo

loginapp's Introduction

LoginApp

LoginApp using Nodejs, passport and Mongodb

  1. Use of following node modules defined in package.json "bcryptjs": "", //password hashing "body-parser": "", //Parse JSON "connect-flash": "", //Flash messages "express-handlebars": "", //View engine "express-messages": "", //Flash messages "express-session": "", //Flash messages "express-validator": "", //Validate forms "mongoose": "", //ORM to interact with DB "passport-http": "", "passport-local": "" // Local passport

  2. Use the command Directory: /loginapp Run the command: npm install

  3. The beginning of the script app.js

  4. Installed mongodb from here: Update Homebrew’s package database: brew Update Install the MongoDB Binaries: brew install mongodb

  5. How to run mongodb

    • Create the data Directory sudo mkdir -p /data/db
    • chage the permission chmod 777 /data/db
    • run mongodb server mongod -Verify that MongoDB has started successfully [initandlisten] waiting for connections on port 27017 -Begin using MongoDB client mongo --host 127.0.0.1:27017 -Later, to stop MongoDB, press Control+C in the terminal where the mongod instance is running. -Some databases show dbs
  6. Create a database use loginapp

  7. db.createCollection('users');

  8. show collections; we have users now.

  9. Bootstrap downloaded from: http://getbootstrap.com/docs/3.3/getting-started/#examples

  10. Jumbotron downloaded from: http://getbootstrap.com/docs/3.3/examples/jumbotron-narrow/

loginapp's People

Contributors

bom6 avatar

Watchers

James Cloos avatar  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.