node-typescript-starter

Simple and straight forward template to get started with Typescript and Node with testing powered by Jest.

Stars
2

Typescript Node Starter Template

Create a Node server using the most favoured language Typescript. Get started with this simple Node-Typescript boilerplate code. It has all the basic setup done including testing which is powered by Jest.

The starter has logging setup out of the box.

The setup uses a highly scalable and maintainable folder structure so it fits for all the needs.

There are many Node-TS starters out there, but i wanted to have the most basic setup which has all the necessary things.

Typescript ❤️️ Node

Features

  1. Highly scalable folder structure.
  2. Bare minimum setup done.
  3. Test configurations added.
  4. Works out of the box.
  5. Logging with Winston and Morgan
  6. .env file for configurations

How to get started

  1. Clone the repository.
git clone https://github.com/adisreyaj/node-typescript-starter.git
  1. Install the packages
npm install
  1. Rename .env.example to .env

  2. Run the server

npm run start
  1. Done. Check the status of the server
http://localhost:3000/api/v1/health

You will be able to see this response:

{
  "status": "up"
}

This means you are good to go.

Running Test

The project use Jest as the test runner and also uses chai and supertest

npm run test

Enjoy