Simple and straight forward template to get started with Typescript and Node with testing powered by Jest.
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
git clone https://github.com/adisreyaj/node-typescript-starter.git
npm install
Rename .env.example
to .env
Run the server
npm run start
http://localhost:3000/api/v1/health
You will be able to see this response:
{
"status": "up"
}
This means you are good to go.
The project use Jest as the test runner and also uses chai and supertest
npm run test
Enjoy