This is a template for creating a server using Express.js with TypeScript.
- Node.js installed on your machine.
-
Clone this repository:
git clone https://github.com/davidumoru/ts-backend.git
-
Navigate to the project directory:
cd ts-backend
-
Install dependencies:
npm install
-
Build the TypeScript code:
npm run build
-
Start the server:
npm start
-
You should see a message in your console indicating that the server is running.
You can configure the server using environment variables. Rename the .env.example
file in the project root and define your variables there.
Example .env
file:
PORT=3000
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This template aims to provide a basic setup for an Express.js server with TypeScript. Feel free to customize it according to your project requirements.