1.0.1 • Published 2 years ago

mini-node-server v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

A very easy mini-node-server

This is a very simple Node server. It lacks many features, and it is used for learning.

Start the server

We should globally install ts-node-dev,it

  • support ts
  • will restart Node server after files changes
yarn global add ts-node-dev

or

npm i -g ts-node-dev

Start the service

ts-node-dev index.ts

How to use

When starting the server, we can open http://localhost:8888 to see the page. Then We can replace sources in the folder of public.