AuthFlow is a website that allows user registration and login in NodeJS, using Express.
This project avoids the abstractions to demonstrate backend expertise, applying previous knowledge to navigate an unfamiliar server framework.
It also provides an API endpoint that handles JSON requests to the SQLite3 database.
- Clone the repository,
git clone https://github.com/j4breu/AuthFlow
. - Check your
node
version, we recommend20.x
in order to avoid problems with better-sqlite3. - Install the dependencies by running
npm install
.
- Set a
PORT
andSQLITE3_PATH
in your own .env file. - Run the server using
npm start
and navigate tohttp://localhost:{PORT}
in your browser. - Register a new user by clicking on the "Register" button.
- Login with your credentials by clicking on the "Login" button.
- Click on "Profile" to see and update your personal information.
BONUS
- 404 Page.
- Button "Logout" to use another account.
-
Api testing in
/api/v1/users/
.
Basic MVC Arquitecture by MDN
General Flowchart
MER Structure
Improvements?
- Don't hesitate to create a PR.
Problems?
- Feel free to open a new issue!
Thanks to the following platforms developing this project is possible:
- Mermaid Live Editor: Online FlowChart & Diagrams Editor.
- Official Express Page: Fast, unopinionated, minimalist web framework for Node.js
- Express Framework - MDN: Explains how to perform common web development and deployment tasks.
- Awesome Wev Dev Courses: Become a Full Stack Web Developer with these awesome project-based courses.