Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benawad/graphql-ts-server-boilerplate
A GraphQL server boilerplate made with Typescript, PostgreSQL, and Redis
https://github.com/benawad/graphql-ts-server-boilerplate
graphql postgresql redis typescript
Last synced: 5 days ago
JSON representation
A GraphQL server boilerplate made with Typescript, PostgreSQL, and Redis
- Host: GitHub
- URL: https://github.com/benawad/graphql-ts-server-boilerplate
- Owner: benawad
- Created: 2018-04-22T14:17:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-28T01:45:11.000Z (over 5 years ago)
- Last Synced: 2024-10-11T08:10:47.160Z (3 months ago)
- Topics: graphql, postgresql, redis, typescript
- Language: TypeScript
- Homepage:
- Size: 216 KB
- Stars: 693
- Watchers: 19
- Forks: 181
- Open Issues: 14
-
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
* Logout
* Cookies
* Authentication middleware
* Rate limiting
* Locking accounts
* Testing (probably Jest)## Watch how it was made
Playlist: https://www.youtube.com/playlist?list=PLN3n1USn4xlky9uj6wOhfsPez7KZOqm2V