Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manish312002/lvl_2_secureauthapp
Lvl_2_secureAuthApp is an Express.js application providing user registration and login functionality with password hashing using bcrypt. It connects to a PostgreSQL database, uses environment variables for configuration, and renders views with EJS. The app ensures secure handling of passwords and user sessions.
https://github.com/manish312002/lvl_2_secureauthapp
Last synced: 18 days ago
JSON representation
Lvl_2_secureAuthApp is an Express.js application providing user registration and login functionality with password hashing using bcrypt. It connects to a PostgreSQL database, uses environment variables for configuration, and renders views with EJS. The app ensures secure handling of passwords and user sessions.
- Host: GitHub
- URL: https://github.com/manish312002/lvl_2_secureauthapp
- Owner: Manish312002
- Created: 2024-08-25T11:19:02.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-25T11:23:35.000Z (5 months ago)
- Last Synced: 2024-11-10T20:08:35.162Z (3 months ago)
- Language: EJS
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lvl_2_secureAuthApp
## Description
Lvl_2_secureAuthApp is a secure authentication application built with Express.js. It provides user registration and login functionalities, with passwords hashed using bcrypt for added security. The application uses a PostgreSQL database to store user credentials and renders views with EJS.## Features
- User registration with email and password
- Password hashing for secure storage
- User login with password verification
- Environment variables for configuration
- EJS templating for dynamic views## Installation
1. **Clone the repository:**
```bash
git clone https://github.com/Manish312002/Lvl_2_secureAuthApp.git
cd Lvl_2_secureAuthApp2. Install dependencies:
```bash
npm i express ejs pg body-parser bcrypt3. Set up your PostgreSQL database:
- Create a database named Web Dev or update the db configuration in app.js to match your database name.
- Create a table named userauth with columns email (VARCHAR) and password (VARCHAR).4. Start the server:
```bash
node index.js## Usage
- Home Page: GET / - Displays the home page.
- Login Page: GET /login - Displays the login form.
- Register Page: GET /register - Displays the registration form.
- Register User: POST /register - Submits user registration data.
- Login User: POST /login - Submits user login data.