https://github.com/shivankk26/secrets-authentication-webapp
In this Project, I've built a WebApp namely Secrets-Authenticaton-WebApp using which you can secure your secrets. This WebApp is extremely secure because we're passport.js, cookies, and sessions in it. So, just use it and have fun!!!
https://github.com/shivankk26/secrets-authentication-webapp
backend cookies ejs expressjs javascript mongodb mongoose nodejs passportjs sessions
Last synced: 3 months ago
JSON representation
In this Project, I've built a WebApp namely Secrets-Authenticaton-WebApp using which you can secure your secrets. This WebApp is extremely secure because we're passport.js, cookies, and sessions in it. So, just use it and have fun!!!
- Host: GitHub
- URL: https://github.com/shivankk26/secrets-authentication-webapp
- Owner: ShivankK26
- Created: 2023-06-01T19:55:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-03T05:16:04.000Z (almost 2 years ago)
- Last Synced: 2025-01-09T06:22:17.954Z (4 months ago)
- Topics: backend, cookies, ejs, expressjs, javascript, mongodb, mongoose, nodejs, passportjs, sessions
- Language: EJS
- Homepage:
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About The Project
In this Project, I've built a WebApp namely Secrets-Authenticaton-WebApp using which you can secure your secrets. This WebApp is extremely secure because we're passport.js, cookies, and sessions in it. So, just use it and have fun!!!
Use the `README.md` to get started.
# Built With
The Tech Stacks use are:
# Getting Started
To get started, create a file called app.js and import all the required modules in it. After that create a folder called views and place the home.ejs, login.ejs, register.ejs, secrets.ejs, and submit.ejs files in it. Also, inside views folder create a sub-folder called partials in which include header.ejs and footer.ejs filed. After that, create another folder called public in which add another folder called css in which you'll need to add a file called styles.css.
* modules
```sh
require('dotenv').config();
const express = require('express');
const bodyParser = require('body-parser');
const ejs = require('ejs');
const mongoose = require('mongoose');
const session = require('express-session');
const passport = require('passport');
const passportLocalMongoose = require('passport-local-mongoose');
```* ejs connectivity
```sh
app.set("view engine","ejs")
```
* Using Body Parser```sh
app.use(bodyParser.urlencoded({extended: true}));
```## Prerequisites
To begin with our Project, we'll need to install some npm packages like express, mongoose, body-parser, ejs, session, passport, and passportLocalMongoose using the command given below.
* npm
```sh
npm install express mongoose ejs passport express-session passport-local-mongoose body-parser
```
* To ease the process of development, we'll install nodemon (Make sure you already have nodemon installed in your system, if not then [visit here](https://nodemon.io/)).```sh
npm i nodemon
```# Contact
Your Name - Shivank Kapur - [email protected]
Project Link: