Node API template with basic functionalities added
This is a template project for Node.js + Express applications. It includes several built-in features to help you get started quickly.
- Config: Built-in configuration setup using
config
for environment variables. - Logging: Integrated logging mechanism with
winston
for easy debugging and monitoring. - Routes: Pre-configured routes setup using Express Router for organizing API endpoints.
- Models: Sample models directory structure to define Mongoose schemas and models.
- Controllers: Controller layer for handling business logic and interacting with models.
- Mongoose: MongoDB object modeling tool integrated for data manipulation and query handling.
- Error Handling: Centralized error handling middleware for uniform error responses.
- JWT Generation: JSON Web Token (JWT) generation and authentication mechanism.
Before getting started, ensure you have the following installed:
- Node.js and npm
- MongoDB (if you're using Mongoose for database)
- Clone this repository:
git clone https://github.com/luisvent/node-express-template.git
- Install dependencies:
npm install
- Run project:
npm start