This repository provides a comprehensive template for setting up a server using Express, along with all the necessary dependencies to ensure a smooth development experience. The template is designed to enforce the modular monolith architecture, promoting a clean and maintainable codebase.
- Express Setup: Comes pre-configured with Express, a popular Node.js web application framework, to handle HTTP requests.
- Modular Monolith Architecture: Organized into modules to maintain a clean and scalable codebase.
- Dependency Management: Includes all necessary dependencies for a robust server setup.
- Prettier ESLint Integration: Integrates Prettier ESLint for code formatting and linting, ensuring code quality and consistency.
- Node.js (v20.0.0 or later)
- npm (v8.0.0 or later)
-
Clone the repository: git clone https://github.com/yourusername/server-template.git
-
Navigate to the project directory: cd server-template
-
Install dependencies: npm install
To start the server, run:
npm start
The server will be accessible at http://localhost:5000
.
This template integrates Prettier ESLint, a tool for formatting and linting your code. To set it up, follow these steps:
- Install Prettier ESLint extension and restart your VScode