Created an Authentication System
- The master branch contains the authentication system using Passport.js
- The manual-local-auth branch contains Manual Authentication system
This project supports the MVC structure. You can learn more about the MVC structure here
codeial
βββ index.js
βββ package.json
βββ package-lock.json
βββ .gitignore
βββ assets
| βββ css
| βββ layouts.css
| βββ styles.js
βββ models
| βββ user.js
βββ views
| βββ _footer.ejs
| βββ _header.ejs
| βββ home.ejs
| βββ layout.ejs
| βββ user.ejs
| βββ user_profile.ejs
| βββ user_sign_in.ejs
| βββ user_sign_up.ejs
βββ routes
| βββ index.js
| βββ user.js
βββ controllers
| βββ home_controller.js
| βββ user_controller.js
βββ config
βββ mongoose.js
βββ passport-local-strategy.js
$ npm install dependencies
Make sure you change the directory to codeial
$ cd codeial
Now type in the following command to start the project:
$ npm start