GitXplorerGitXplorer
a

ts-graphql-example

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
1589a3299a90b2144408c02eaad4a7046fa35dc6

Created tests for Me and Register resolver. Created test utility for interacting with graphql resolvers

aanthonysea committed 3 years ago
Unverified
1b8f69c1122ea68b69e8cebdc52fe220f7dc0b96

Updated imports to use relative paths. Setup testing environment using jest with test database

aanthonysea committed 3 years ago
Unverified
79595e38768f190e63c85db4f9630be761ffc955

Added Logout resolver. Updated MyContext to contain response object that can be used to clear cookies.

aanthonysea committed 3 years ago
Unverified
24272ab767cb50d994f4a5d7f6fa9d1877cbe311

Abstracted password field to its own file that can be reused accross different input types that use the password field

aanthonysea committed 3 years ago
Unverified
661dc601e88fb8053ea7885eeda66d7bb2f188c9

Added resolvers for resetting password and user confirmation

aanthonysea committed 3 years ago
Unverified
54689f95c00774dda33fe021716c108966995485

Initial commit

aanthonysea committed 3 years ago

README

The README file for this repository.

TypeScript GraphQL Backend Example

Repo to learn about using TypeScript, TypeGraphQL, TypeORM, Express, and Sessions

Prerequisites

  • PostgreSQL installed
  • Redis installed

Installation & Setup

  • Install project dependencies

yarn install

  • Create a database with PostgreSQL:

createdb example-db

  • Create an ormconfig.json file, see ormconfig-example.json for an example

  • Create your own .env file, see .env.example for an example

Usage

yarn start

  • Visit the GraphQL Studio and start using the queries/mutations

Tests

  • Use `yarn

Notes

  • Project uses a fractal directory structure, idea from here