An open API service indexing awesome lists of open source software.

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.

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
```