Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryzmdn/expressjs-auth-basic

User authentication with Express.js using JWT.
https://github.com/ryzmdn/expressjs-auth-basic

authentication authorization bcryptjs express javascript jwt middleware nodejs user-authentication

Last synced: 14 days ago
JSON representation

User authentication with Express.js using JWT.

Awesome Lists containing this project

README

        

# ExpressJS Basic Authentication

Express is a user-friendly framework that simplifies the process of developing Node applications. It uses JavaScript as the programming language and provides an efficient way to build web and API applications.

## Folder Structure

```bash
backend/
├── config/
│ └── authController.js # For database connection
├── controllers/
│ └── authController.js # For authentication logic
├── middleware/
│ └── authMiddleware.js # Middleware for protect route
├── models/
│ └── User.js # User model
├── node_modules/ # Storage and management of dependencies
├── routes/
│ └── authRoutes.js # Routes to login/register
├── utils/
│ └── token.js # Generate token
├── .env # Environment variable
├── server.js # Main file to run the server
└── package.json # Dependency list
```

## Learn ExpressJS

- [Express JS](https://expressjs.com/)
- [GeeksForGeeks](https://www.geeksforgeeks.org/express-js/)
- [Mozilla](https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Introduction)
- [Codecademy](https://www.codecademy.com/learn/learn-express)
- [Coursea](https://www.coursera.org/learn/expressjs-essentials-building-modern-web-apis?msockid=175d10c54e29662a1b6504324f7f67dd)