Skip to content

Dolosolow/gql-typescript-server

Repository files navigation

TS GraphQL Server

A GraphQL Server boilerplate

Prerequisites

  • ⚠️ Server uses Typeorm w/ Postgres so please make sure to have postgres installed.

  • ⚠️ Server also uses Redis so please make sure to have this installed.

Stack

  • Apollo-server-express
  • GraphQL Code Generator for generating graphql schema types.
  • Jest
  • Redis
  • Typeorm w/ Postgres
  • Typescript

Installation

  1. Clone git project
git clone https://github.com/Dolosolow/gql-typescript-server.git
  1. CD to project
cd gql-typescript-server
  1. Install dependencies
yarn install
  1. Install and start Redis server, after installation run
redis-server
  1. Start PostgreSQL server

  2. Create a new database called gql-typescript-server

createdb gql-typescript-server

Usage

Start the server with yarn start then to use GraphQL Playground navigate to http://localhost:4000/graphql .

Features

  • Register - Send confirmation email
  • Login
  • Forgot Password
  • Logout
  • Cookies
  • Authentication middleware
  • Locking accounts
  • Testing