Skip to content

shyamajp/node-express-ts-server-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js + Express + TypeScrypt server

A basic Node.js + Express server using TypeScrypt. Default page will return "Hello, World!"

Getting started

  1. clone this repository by using
    git clone https://github.com/shyamajp/node-express-ts-server-starter.git
  2. run npm install in the root directory to install all the dependencies

Enviroment variables(optional)

  1. create a file .env under the root directory
  2. copy and paste below into /.env file
NODE_ENV=development
PORT=3000
  1. make sure that you have .env in your /.gitignore so that your credentials will not be exposed to the public

Available scripts

For development

  • npm run dev or npm start - runs the server with nodemon
  • npm run test - runs test (currently unavailable)

For production

  • npm run build - builds project into /build`
  • npm run prod - runs script from /build/index.js

About

A basic Node.js + Express server using TypeScrypt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published