https://github.com/ref-bit/express-winston-typescript-starter-template
A starter template with expressjs & winston & typescript.
https://github.com/ref-bit/express-winston-typescript-starter-template
Last synced: about 1 year ago
JSON representation
A starter template with expressjs & winston & typescript.
- Host: GitHub
- URL: https://github.com/ref-bit/express-winston-typescript-starter-template
- Owner: Ref-Bit
- License: mit
- Created: 2022-10-25T11:00:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-25T11:08:01.000Z (over 3 years ago)
- Last Synced: 2025-01-18T04:29:13.895Z (about 1 year ago)
- Language: TypeScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Express + Winston + Typescript Starter Template
---
### Description
---
This template created for quicker supports the following tools:
* [cors](https://github.com/expressjs/cors#readme) - Enable CORS with various options on your server.
* [dotenv](https://github.com/motdotla/dotenv#readme) - zero-dependency module that loads environment variables.
* [expressjs](http://expressjs.com) - Fast, unopinionated, minimalist web framework for Node.js (with async handler for next function).
* [helmet](https://helmetjs.github.io) - Helps you secure your Express apps by setting various HTTP headers.
* [morgan](https://github.com/expressjs/morgan#readme) - HTTP request logger middleware for node.js
* [winston](https://github.com/winstonjs/winston#readme) A logger for just about everything (with daily log files rotation).
### Get Started
---
Create environment variables file
```bash
cp .env.example .env
```
Install node modules
```bash
yarn
```
Build the src folder
```bash
yarn build
```
Start the project
```bash
yarn dev
```