Coder Social home page Coder Social logo

jerylu2020 / express-mongodb-authentication Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lintangwisesa/express-mongodb-authentication

0.0 1.0 0.0 602 KB

A simple authentication app using Express & MongoDB

JavaScript 78.88% HTML 21.12%

express-mongodb-authentication's Introduction

simplinnovation

A Simple Authentication App Using Express & MongoDB

simplinnovation_exp_auth

1. Activate your MongoDB server, then create a database, database user & collection on MongoDB:

  $ use signin

  $ db.createUser({user: 'lintang', pwd: '1234', roles: ['readWrite', 'dbAdmin']})
    
  $ db.createCollection('users')

2. Clone the project from my repo:

  $ git clone https://github.com/LintangWisesa/Express-MongoDB-Authentication.git

3. Go to the repo then install all packages needed:

  $ cd Express-MongoDB-Authentication

  $ npm install

4. Edit Express app route on routes/router.js! Make sure there is no error on your app by running app.js. Server will be running by default on localhost:3210!

  $ node app

5. Open localhost:3210 via browser. If everything goes well, the response will be similar to the picture below:

simplinnovation_auth1

6. Try to signup, check on your database, then try to login. Have fun ๐Ÿ˜Ž !

simplinnovation_auth2

simplinnovation_auth3

simplinnovation_auth4

simplinnovation_auth5

Lintang Wisesa ๐Ÿ’Œ [email protected]

Facebook | Twitter | Google+ | Youtube | :octocat: GitHub | Hackster

express-mongodb-authentication's People

Contributors

lintangwisesa avatar

Watchers

Jery Lu 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.