Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manangandhi1810/express-auth-template
A simple authentication template for Express.js servers
https://github.com/manangandhi1810/express-auth-template
Last synced: 1 day ago
JSON representation
A simple authentication template for Express.js servers
- Host: GitHub
- URL: https://github.com/manangandhi1810/express-auth-template
- Owner: MananGandhi1810
- License: mit
- Created: 2024-08-28T12:10:34.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T06:26:42.000Z (10 days ago)
- Last Synced: 2024-11-09T06:30:08.601Z (10 days ago)
- Language: JavaScript
- Size: 194 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Express Authentication Template
This is a simple Express app which uses JWT based authentication.
## Features
- User registration
- User login
- Email Verification
- Authentication Middleware
- Password Reset## Tech Stack
- Node.js
- Express
- PostgreSQL
- Prisma ORM
- Resend Email API
- Argon2 Password Hashing## How to use
### Local Development
1. Clone the repository
2. Install dependencies using `npm install`
3. Rename `.env.example` to `.env` and fill in the required details
4. Run the server using `npm start` or `npm run dev` (for development)### Docker
1. Clone the repository
2. Rename `.env.example` to `.env` and fill in the required details
3. Run `npm run docker:build` to build the Docker image
4. Run the following command to run the Docker container```bash
docker run --env-file .env.prod --name -d --network= -p 3000:3000 express-auth
```## Contributing
1. Fork the repository
2. Open an issue or feature request
3. Create a new branch (`git checkout -b feature`)
4. Commit your changes (`git commit -am 'Add new feature'`)
5. Push to the branch (`git push origin feature`)
6. Create a new Pull Request
7. Get your changes merged