https://github.com/0xradioac7iv/express-template
A robust and scalable boilerplate for building modern web applications with Node.js, Express, and TypeScript.
https://github.com/0xradioac7iv/express-template
backend express expressjs nodejs swagger template
Last synced: 2 months ago
JSON representation
A robust and scalable boilerplate for building modern web applications with Node.js, Express, and TypeScript.
- Host: GitHub
- URL: https://github.com/0xradioac7iv/express-template
- Owner: 0xRadioAc7iv
- License: mit
- Created: 2025-01-31T12:02:56.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-15T13:37:05.000Z (over 1 year ago)
- Last Synced: 2025-02-15T14:28:42.473Z (over 1 year ago)
- Topics: backend, express, expressjs, nodejs, swagger, template
- Language: TypeScript
- Homepage:
- Size: 332 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ๐ Node.js Express Application Template
A robust and scalable boilerplate for building modern web applications with Node.js, Express, and TypeScript.
## โจ Features
- **TypeScript** - Strongly typed development for reliability.
- **Nodemon** - Automatic server reloads for an efficient workflow.
- **ESLint** - Enforces coding standards and best practices.
- **Jest** - Preconfigured testing suite for unit and integration tests.
- **Docker Support** - Prebuilt `Dockerfile` for containerized deployment.
- **Redis Client** - Integrated Redis support for caching and session storage.
- **EJS View Engine** - Server-side rendering with Embedded JavaScript Templates.
- **Custom Error Handling** - Centralized error management middleware.
- **Winston Logging** - Advanced logging for debugging and monitoring.
- **Rate Limiting** - Protect against abuse with `express-rate-limit`.
- **Joi Request Validation** - Ensures API request integrity.
- **Swagger API Documentation** - Preconfigured interactive API docs.
- **Response Compression** - Optimized API responses for better performance.
- **Security Middleware** - Helmet and CORS for improved security.
## โก Installation
```bash
gh repo create YOUR_REPO_NAME --template=0xRadioAc7iv/express-template --private
```
## ๐ Running the Application
### Development Mode
```bash
npm run dev
```
### Production Mode
```bash
npm start
```
### Using Docker
```bash
docker build -t express-app .
docker run -p 3000:3000 express-app
```
## ๐งช Running Tests
```bash
npm test
```
## ๐ API Documentation
Swagger API documentation is available at:
http://localhost:3000/docs
## Contributing
Contributions are welcome! If you'd like to contribute:
- Fork the repository.
- Create a feature branch: `git checkout -b feature-name`.
- Commit your changes: `git commit -m "Add feature-name"`.
- Push to the branch: `git push origin feature-name`.
- Submit a pull request.
## ๐ License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.