Repository navigation
v1.1.0 - Add CORS and Environment Configuration
What's New
- Added CORS configuration with environment variable support.
- Introduced
.envand.env.examplefor environment configuration. - Improved production and development environment setups.
- Updated README with new features and instructions.
- Enhanced security by integrating Helmet.
- Improved logging with Morgan.
Installation
git clone https://github.com/alphajoop/ts-express-quickstart.git
cd ts-express-quickstart
npm installUsage
# Start the development server
npm start
# Build the project for production
npm run build
# Start the production server
npm run serveEnvironment Configuration
Create a .env file in the root of your project and configure the following variables:
PORT=3000
ALLOWED_ORIGINS=http://localhost:3000,http://example.com
Contributions
Contributions are welcome! Please submit an issue or a pull request on GitHub.
License
This project is licensed under the MIT License. See the LICENSE file for more information.