/Express-MongoDB-Authentication

A simple authentication app using Express & MongoDB

Primary LanguageJavaScript

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 💌 lintangwisesa@ymail.com

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