A minimal and flexible Express template to kickstart your backend project. This template is designed to help you quickly get up and running with a clean and well-organized Express server. It's equipped with essential tools, including CORS, environment configuration, and error handling.
- Node.js 20.x
- pnpm
-
Clone the repository:
git clone https://github.com/Bart0llo/express-template
-
Navigate to the project directory:
cd express-template
-
Install dependencies:
pnpm install
-
Create a
.env
file in the root directory to manage environment variables, e.g.:PORT=3000
-
To run the app in development mode:
pnpm run dev
-
To run the app in production mode:
pnpm start
This project is licensed under the MIT License - see the LICENSE file for details.
For questions or feedback, please reach out to bart0llo.dev.