1.0.2 • Published 2 years ago
compose-express-app v1.0.2
If you find this project useful, please consider giving it a star (⭐) on GitHub.
Express TypeScript Boilerplate ⚡
A minimalistic boilerplate for building Express.js applications using TypeScript.
Features
- 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.
Installation
To create a express app:
npx create-react-app my-app
cd my-app
npm start
Configuration
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.
Running the Application
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
License
This project is licensed under the MIT License - see the LICENSE file for details.