Skip to content

Latest commit

 

History

History
57 lines (39 loc) · 1.34 KB

README.md

File metadata and controls

57 lines (39 loc) · 1.34 KB

Auth-Implementations.

Description:

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.

Technologies Used:

  • Frontend: HTML, CSS, JavaScript
  • Backend: Node.js, Express, PostgreSQL
  • Dependencies: body-parser, ejs, pg, bcrypt.

Project Structure:

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.

How to Run:

  • 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.