Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tasoskakour/node-typescript-server-template

📡 Server template using Fastify + Mercurius Graphql
https://github.com/tasoskakour/node-typescript-server-template

Last synced: about 1 month ago
JSON representation

📡 Server template using Fastify + Mercurius Graphql

Awesome Lists containing this project

README

        

# node-typescript-server-template

> Typescript Node server template using [fastify](https://www.fastify.io/), [mongoose](https://mongoosejs.com/), [ava](https://avajs.dev/), [graphql](https://graphql.org/), [mercurius](https://mercurius.dev/#/), [graphql-compose](https://graphql-compose.github.io/), [eslint](https://eslint.org/), [Sentry](https://sentry.io/welcome/), [nodemon](https://nodemon.io/), code coverage and other stuff

[![build](https://img.shields.io/github/workflow/status/tasoskakour/node-typescript-server-template/ci?style=flat&logo=github&label=)](https://github.com/tasoskakour/node-typescript-server-template/actions) [![style](https://img.shields.io/badge/tasoskakour.com-blueviolet.svg?style=flat)](https://tasoskakour.com)


## Use this template

- Update [`package.json`](./package.json) with your info.
- Update [`LICENSE`](./LICENSE) with your info.
- Load environment variables based on [`.env.sample`](./.env.sample). I prefer to load them with [.envrc](https://direnv.net/)
- Delete this section from README and update the rest accordingly.

## Prerequisites

- node >= 14

## Install

```sh
$ yarn
```

## Usage

```sh
$ yarn start
```

## Run tests

```sh
$ yarn test
```

## Development

```sh
$ yarn dev
```

🥰 Big props to my buddy Napoleon, as this repo is heavily influenced from his own [nodejs-server-template](https://github.com/iamnapo/nodejs-server-template).