Skip to content

v1.1.0 - Add CORS and Environment Configuration

Latest

Choose a tag to compare

@khossdev khossdev released this 23 Jun 14:02
3e9254c

v1.1.0 - Add CORS and Environment Configuration

What's New

  • Added CORS configuration with environment variable support.
  • Introduced .env and .env.example for 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 install

Usage

# Start the development server
npm start

# Build the project for production
npm run build

# Start the production server
npm run serve

Environment 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.