Boilerplate for express backend application with typescript
- clone the repo
- Install the dependencies by running
npm install
- Create .env file inside root folder of the project and add the following:
NODE_ENV=development
API_BASE_PATH='/api/v1/'
PORT=5000
JWT_TOKEN_SECRETE_KEY=123456
- Start the dev server in watch mode by running
npm run start:dev
You can go to https://localhost:5000
- Run dev test in watch mode by running
npm run test:dev
- Run test with coverage
npm run test:badges
- Create a production build and start the server by running
npm start