Boilerplate for typescript based Node + Express project.
For Development
npm run dev
For production
npm start
We have configured dotenv preloaded in scripts commands. Thus, you will require to create .env
file using .env.sample
which is available in the root.
You can check package.json
file for more understanding.
For Development
Create .env.development
using reference of .env.sample
For Production
Create .env
using reference of .env.sample
Contents of .env.sample
# set environment - 'development' || 'production'
NODE_ENV='development'
# express listening port
PORT=8080
How to use ESLint with TypeScript
https://khalilstemmler.com/blogs/typescript/eslint-for-typescript/
Use TypeScript to Build a Node API with Express
https://developer.okta.com/blog/2018/11/15/node-express-typescript
Create a server with Nodemon + Express + Typescript
Type Search