All Projects → jsynowiec → Node Typescript Boilerplate

jsynowiec / Node Typescript Boilerplate

Licence: apache-2.0
Minimalistic project template to jump start a Node.js back-end application in TypeScript. ESLint, Jest and type definitions included.

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Node Typescript Boilerplate

Nodejs Api Boilerplate
A boilerplate for kickstart your nodejs api project with JWT Auth and some new Techs :)
Stars: ✭ 364 (-65.69%)
Mutual labels:  eslint, prettier, express, node-js, boilerplate
Nodebestpractices
✅ The Node.js best practices list (December 2021)
Stars: ✭ 72,734 (+6755.23%)
Mutual labels:  microservices, eslint, express, node-js, jest
node-boilerplate
Node Typescript Boilerplate for Microservices. Skeleton for Node.js Apps written in TypeScript (with Setup Instructions for ESLint, Prettier, and Husky)
Stars: ✭ 92 (-91.33%)
Mutual labels:  eslint, backend, prettier, starter-template, node-js
Node Flowtype Boilerplate
This boilerplate repository is outdated and no longer maintained. Instead, I strongly recommend to use TypeScript.
Stars: ✭ 104 (-90.2%)
Mutual labels:  eslint, starter-template, project-template, boilerplate, jest
Express React Boilerplate
🚀🚀🚀 This is a tool that helps programmers create Express & React projects easily base on react-cool-starter.
Stars: ✭ 32 (-96.98%)
Mutual labels:  eslint, prettier, express, boilerplate, jest
React Redux Saucepan
A minimal and universal react redux starter project. With hot reloading, linting and server-side rendering
Stars: ✭ 86 (-91.89%)
Mutual labels:  eslint, prettier, express, boilerplate
Serverless Typescript Starter
🗄🙅‍♀️ Deploy your next serverless JavaScript function in seconds
Stars: ✭ 653 (-38.45%)
Mutual labels:  serverless, eslint, prettier, jest
Mostly
They mostly come at night; mostly.
Stars: ✭ 78 (-92.65%)
Mutual labels:  eslint, prettier, express, jest
Express Babel
Express starter kit with ES2017+ support, testing, linting, and code coverage
Stars: ✭ 621 (-41.47%)
Mutual labels:  eslint, express, boilerplate, jest
Js Stack Boilerplate
Final boilerplate code of the JavaScript Stack from Scratch tutorial –
Stars: ✭ 145 (-86.33%)
Mutual labels:  eslint, express, boilerplate, jest
Reeakt
A modern React boilerplate to awesome web applications
Stars: ✭ 116 (-89.07%)
Mutual labels:  eslint, prettier, express, jest
Typescript Express Starter
🚀 TypeScript Express Starter
Stars: ✭ 238 (-77.57%)
Mutual labels:  eslint, prettier, express, jest
Webpack React Boilerplate
Minimal React 16 and Webpack 4 boilerplate with babel 7, using the new webpack-dev-server, react-hot-loader, CSS-Modules
Stars: ✭ 358 (-66.26%)
Mutual labels:  eslint, prettier, jest
Ultimate Backend
Multi tenant SaaS starter kit with cqrs graphql microservice architecture, apollo federation, event source and authentication
Stars: ✭ 978 (-7.82%)
Mutual labels:  microservices, boilerplate, backend
React Typescript Web Extension Starter
🖥 A Web Extension starter kit built with React, TypeScript, SCSS, Storybook, Jest, EsLint, Prettier, Webpack and Bootstrap. Supports Google Chrome + Mozilla Firefox + Brave Browser 🔥
Stars: ✭ 510 (-51.93%)
Mutual labels:  eslint, prettier, jest
Pwa
An opinionated progressive web app boilerplate
Stars: ✭ 353 (-66.73%)
Mutual labels:  eslint, boilerplate, jest
Serverless Express
Run Node.js web applications and APIs using existing application frameworks on AWS #serverless technologies such as Lambda, API Gateway, Lambda@Edge, and ALB.
Stars: ✭ 4,265 (+301.98%)
Mutual labels:  serverless, express, node-js
Api server boilerplate
typescript express board boilerplate using routing controller
Stars: ✭ 52 (-95.1%)
Mutual labels:  service, starter-template, project-template
Electron React Boilerplate
A Foundation for Scalable Cross-Platform Apps
Stars: ✭ 18,727 (+1665.03%)
Mutual labels:  eslint, boilerplate, jest
React Ssr Setup
React Starter Project with Webpack 4, Babel 7, TypeScript, CSS Modules, Server Side Rendering, i18n and some more niceties
Stars: ✭ 678 (-36.1%)
Mutual labels:  eslint, prettier, express

Sponsor TypeScript version Node.js version APLv2 Build Status - Travis Build Status - GitHub Actions

node-typescript-boilerplate

👩🏻‍💻 Developer Ready: A comprehensive template. Works out of the box for most Node.js projects.

🏃🏽 Instant Value: All basic tools included and configured:

  • TypeScript 4.2
  • ESLint with some initial rules recommendation
  • Jest for fast unit testing and code coverage
  • Type definitions for Node.js and Jest
  • Prettier to enforce consistent code style
  • NPM scripts for common operations
  • Simple example of TypeScript code and unit test
  • .editorconfig for consistent file format
  • Reproducible environments thanks to Volta
  • Example configuration for GitHub Actions and Travis CI

🤲 Free as in speech: available under the APLv2 license.

Getting Started

This project is intended to be used with the latest Active LTS release of Node.js.

Use as a repository template

To start, just click the Use template link (or the green button). Now start adding your code in the src and unit tests in the __tests__ directories.

Clone repository

To clone the repository use the following commands:

git clone https://github.com/jsynowiec/node-typescript-boilerplate
cd node-typescript-boilerplate
npm install

Download latest release

Download and unzip current main branch or one of tags:

wget https://github.com/jsynowiec/node-typescript-boilerplate/archive/main.zip -O node-typescript-boilerplate.zip
unzip node-typescript-boilerplate.zip && rm node-typescript-boilerplate.zip

Available Scripts

  • clean - remove coverage data, Jest cache and transpiled files,
  • build - transpile TypeScript to ES6,
  • build:watch - interactive watch mode to automatically transpile source files,
  • lint - lint source files and tests,
  • test - run tests,
  • test:watch - interactive watch mode to automatically re-run tests

Additional Informations

Why include Volta

Volta’s toolchain always keeps track of where you are, it makes sure the tools you use always respect the settings of the project you’re working on. This means you don’t have to worry about changing the state of your installed software when switching between projects. For example, it's used by engineers at LinkedIn to standarize tools and have reproducible development environments.

I recommend to install Volta and use it to manage your project's toolchain.

Writing tests in JavaScript

Writing unit tests in TypeScript can sometimes be troublesome and confusing. Especially when mocking dependencies and using spies.

This is optional, but if you want to learn how to write JavaScript tests for TypeScript modules, read the corresponding wiki page.

Backers & Sponsors

Support this project by becoming a sponsor.

License

Licensed under the APLv2. See the LICENSE file for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].