A GraphQL Server boilerplate made with Typescript, PostgreSQL, and Redis
- Clone project
git clone https://github.com/benawad/graphql-ts-server-boilerplate.git
- cd into folder
cd graphql-ts-server-boilerplate
- Download dependencies
yarn
- Start PostgreSQL server
- Create database called
graphql-ts-server-boilerplate
createdb graphql-ts-server-boilerplate
-
Add a user with the username
postgresand and no password. (You can change what these values are in the ormconfig.json) -
Install and start Redis
You can start the server with yarn start then navigate to http://localhost:4000 to use GraphQL Playground.
- Register - Send confirmation email
- Login
- Forgot Password
- JWT
- Authentication middleware
- Rate limiting
- Locking accounts
- Tested using Jest.