Typescript Node Get Started: Project Template

If you want to kick-start a typescript node application with support for:
- Eslint to apply best practices on code-style
- Prettier formatting
- NVM to fix node version to latest LTS version
- Live reload with nodemon

without having to set these things up one by one, you can use this npx starter to just get up and running:

# make sure have node version > 16.x: node --version
# cd into your repository root
npm init -y
npx @saeidjoker/ts-node-template@latest

After that, you can test your app with this command

npm run start:dev

This will print hi on the console. You can change the contents of src/index.ts and save the file and the app will cold-reload :-)

The repository of this npx starter is here: saeidjoker/ts-node-template: A simple ts-node template with prettier, nvmrc and eslint (github.com)

Enjoy!

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Saeed Farahi Mohassel
Saeed Farahi Mohassel

Written by Saeed Farahi Mohassel

An experience Software Developer with a focus in backend, micro-services and cloud native applications.

No responses yet

Write a response