https://github.com/secmohammed/graphql-typescript-server-boilerplate
https://github.com/secmohammed/graphql-typescript-server-boilerplate
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/secmohammed/graphql-typescript-server-boilerplate
- Owner: secmohammed
- Created: 2019-07-25T15:18:41.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T11:49:30.000Z (over 3 years ago)
- Last Synced: 2025-06-06T18:13:04.502Z (about 1 year ago)
- Language: TypeScript
- Size: 396 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-ts-server-boilerplate
A GraphQL Server boilerplate made with Typescript, PostgreSQL, and Redis
## Installation
1. Clone project
```
git clone https://github.com/benawad/graphql-ts-server-boilerplate.git
```
2. cd into folder
```
cd graphql-ts-server-boilerplate
```
3. Download dependencies
```
yarn
```
4. Start PostgreSQL server
5. Create database called `graphql-ts-server-boilerplate`
```
createdb graphql-ts-server-boilerplate
```
6. [Add a user](https://medium.com/coding-blocks/creating-user-database-and-adding-access-on-postgresql-8bfcd2f4a91e) with the username `postgres` and and no password. (You can change what these values are in the [ormconfig.json](https://github.com/benawad/graphql-ts-server-boilerplate/blob/master/ormconfig.json))
7. Install and start Redis
## Usage
You can start the server with `yarn start` then navigate to `http://localhost:4000` to use GraphQL Playground.
## Features
* Register - Send confirmation email
* Login
* Forgot Password
* JWT
* Authentication middleware
* Rate limiting
* Locking accounts
* Tested using Jest.