This repository is a collection of practical examples for implementing various authentication methods in web applications. Each directory represents a specific type of authentication and contains everything needed to set up and run the example.
- Frontend: HTML, CSS, JavaScript
- Backend: Node.js, Express, PostgreSQL
- Dependencies: body-parser, ejs, pg, bcrypt.
Each directory represents a type of authentication. For example:
- auth-lvl-1: Implements basic authentication with username and password.
- public: CSS files as a style sheet.
- views: EJS files for the user interface.
- index.js: Node.js server code.
- package.json:Dependencies..
- queries.sql: SQL instructions to create the database.
- To run the code you must create a database locally with your user, to do this follow the instructions in the queries.sql file in each directory.
- open bash terminal.
- Clone the repository:
git clone <url_repository>
- Navigate to the desired authentication directory:
cd auth-lvl-1
- Install dependencies:
npm install
- run the example:
node index.js
Contributions: Contributions are welcome. Please open an issue or create a pull request.
Author: Lisandro Piatti.