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 install
in the root directory to install all the dependencies
- create a file
.env
under the root directory - copy and paste below into
/.env
file
NODE_ENV=development
PORT=3000
- make sure that you have .env in your
/.gitignore
so that your credentials will not be exposed to the public
npm run dev
ornpm 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