If you find this project useful, please consider giving it a star (⭐) on GitHub.
A minimalistic boilerplate for building Express.js applications using TypeScript.
- Express.js web application with TypeScript.
- Middleware for handling CORS.
- Environment variable configuration using dotenv.
- Development server with automatic code reloading using nodemon.
- Jest for testing.
- Supertest for testing HTTP requests.
- Morgan for HTTP request logging.
To create a express app:
npx compose-express-app my-app
cd my-app
npm start
-
Create a .env file in the project root and configure your environment variables. You might need to set variables like port, database connection details, or any other configuration specific to your project.
-
Customize the Express routes and application logic located in the src/ directory according to your project's requirements.
Build the TypeScript source code to the dist/ directory:
npm run build
Start the development server with automatic reloading:
npm start
To run tests, use the following command:
npm test
This project is licensed under the MIT License - see the LICENSE file for details.