Skip to content

server boilerplate nodejs, express, typescript, mocha chai testing

Notifications You must be signed in to change notification settings

saddam-satria/server-node-ts

Repository files navigation

Node Typescript Boilerplate Starter Kit V1

this is a small starter kit pack full rest api server with node js typescript. ORM package it's optional, so I don't include it.

- First Configuration

git clone https://github.com/saddam-satria/server-node-ts

yarn install

Use yarn instead npm for package manager

- Development Mode

yarn run dev

the browser will serve localhost:5000

- Testing Mode

yarn test

mocha configure test folder as testing files input

- Production Mode

yarn run build

typescript will compile into javascript file

- Starting Production

yarn start

node will be serve build folder, before use it, don't forget to compile src folder with syntax yarn run build

TIPS

  • in the production mode, compiler folder will in build, static folder in the public folder, if you will host, make sure public folder included

- Lint

yarn run lint

eslint will fix the error problems with your code, based on .eslintrc config file, if you don't want it, change yourself style in .eslintrc.js file

- Prettier

yarn run prettier

prettier will clean up your code lines

latest features

  • Nodejs
  • Express
  • Typescript
  • Mocha chai http testing
  • Husky pre commit
  • Prettier
  • bcrypt helper
  • jwt helper
  • logger middleware

made with ❤️ by Saddam Satria

About

server boilerplate nodejs, express, typescript, mocha chai testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published