Skip to content

NodeFactoryIo/node-ts-starter-fastify

Folders and files

NameName
Last commit message
Last commit date
Jan 21, 2021
May 31, 2021
May 31, 2021
Apr 12, 2020
May 31, 2021
Feb 18, 2021
Jul 6, 2020
Jan 21, 2021
Jan 21, 2021
May 31, 2021
Apr 12, 2020
Jul 2, 2020
Apr 12, 2020
Apr 12, 2020
Feb 8, 2021
May 31, 2021
Apr 14, 2020
Nov 21, 2022
Sep 9, 2020
Apr 14, 2020
Jan 21, 2021
Feb 3, 2023

Repository files navigation

NodeFactory

NodeJs Typescript Starter

CI check Coverage Status GitHub license Twitter

Starter repository for developing fast API services with typescript and fastify. Docker friendly with default CI configuration.

Requirements

Following software is required to be installed to use this repo:

Usage

  • yarn install - will run and configure everything for you

Database

  • use yarn db:migration:new <class name> to generate new empty migration file (same goes for entity and subscriber)
  • use docker-compose exec backend yarn db:migration:generate <class name> to generate new auto generated migration
  • yarn db:migrate - runs all pending migrations against database
  • yarn db:revert - reverts last migration, run multiple times to revert everything
  • yarn db:seed - seeds database with fake data (src/services/db/seeders)
  • yarn run test:unit - runs unit tests with coverage
  • yarn run lint runs following commands:
    • yarn run lint:style - runs eslint against source code
    • yarn run lint:types - checks typescript types
  • yarn run start:dev - runs docker-compose with your server and database, app will autoreload on changes

About

Template repository for NodeJs and Fastify powered API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages 1

Contributors 3