Giter Club home page Giter Club logo

markapiado / nodejs-typescript-starter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 63 KB

This is a simple Typescript-based NodeJs starter template. It is a good way to start a new project with all the necessary tools and configurations. You can easily clone this repository and start working on your custom NodeJs package or NodeJs server.

JavaScript 29.28% TypeScript 53.96% Shell 16.76%
node-typescript nodejs starter-template typescript typescript-boilerplate

nodejs-typescript-starter's Introduction

NodeJs Typescript Starter

This is a simple Typescript-based NodeJs starter template. It is a good way to start a new project with all the necessary tools and configurations. You can easily clone this repository and start working on your custom NodeJs package or NodeJs server.

This is inspired by Khalil Stemmler's simple-typescript-starter.

Feel free to fork this repository and make PRs to improve this starter template.

Setup

Installation:

  • npm i - installs the packages

Husky Preparation

  • npm run prepare - prepares the husky hooks for the project. This is a one-time setup. You don't need to run this command again.

Development :

  • npm run dev - runs the app in development mode.

Production :

  • npm start - runs the app in production mode.

Testing :

  • npm test - runs the test once.
  • test:watch - runs the test in watch mode.

Formatting :

  • npm run format - formats the code using prettier.
  • npm run format-check - checks the format of code using prettier.

Linting :

  • npm run lint - identifyies and reports on patterns found in ECMAScript/JavaScript code.

Cleaning up :

  • npm run clean - removes the dist folder.

Other Features:

Husky - Automate tests, formatting, and linting with Husky. No more manual hassle, just smooth development.

  1. Test Automation: Ensures code integrity.
  2. Code Formatting: Keeps your code clean.
  3. Linting: Eliminates errors.

CI/CD - It includes a GitHub Actions workflow to automate the CI/CD process. It runs the tests, formats the code, and checks the linting on every push to the main branch. Feel free to modify the workflow as per your needs.

nodejs-typescript-starter's People

Contributors

markapiado avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.