Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/ryzmdn/expressjs-auth-basic
- Owner: ryzmdn
- License: cc0-1.0
- Created: 2024-10-24T02:41:59.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T02:43:33.000Z (2 months ago)
- Last Synced: 2024-10-24T19:25:15.544Z (2 months ago)
- Topics: authentication, authorization, bcryptjs, express, javascript, jwt, middleware, nodejs, user-authentication
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)