A basic Node.js + Express server using TypeScrypt. Default page will return "Hello, World!"
- clone this repository by using
git clone https://github.com/shyamajp/node-express-ts-server-starter.git - run
npm installin the root directory to install all the dependencies
- create a file
.envunder the root directory - copy and paste below into
/.envfile
NODE_ENV=development
PORT=3000
- make sure that you have .env in your
/.gitignoreso that your credentials will not be exposed to the public
npm run devornpm start- runs the server with nodemonnpm run test- runs test (currently unavailable)
npm run build- builds project into /build`npm run prod- runs script from /build/index.js