Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lucassus/bookshelf

My GraphQL playground
https://github.com/lucassus/bookshelf

apollo apollo-client apollo-server demo example example-app example-project graphql graphql-codegen graphql-example graphql-playground playground react typeorm typescript

Last synced: about 2 months ago
JSON representation

My GraphQL playground

Awesome Lists containing this project

README

        

# Bookshelf

Example react and GraphQL project made during https://kursreacta.pl/gql course.

https://graphql-bookshelf.herokuapp.com/

![CI](https://github.com/lucassus/bookshelf/workflows/CI/badge.svg)
[![codecov](https://codecov.io/gh/lucassus/bookshelf/branch/master/graph/badge.svg)](https://codecov.io/gh/lucassus/bookshelf)

## Prerequisites

1. Install Node.js version 18.15.0.
2. Running PostgreSQL on port `5432`.
3. Create `bookshelf_development` database with current user access.

```
psql --host localhost --port 5432 --user postgres
CREATE DATABASE bookshelf_development;
```

## Installation and running

1. `yarn install`
2. `yarn build`
3. `yarn dev` - will run express dev server along with webpack.
4. `yarn workspace @bookshelf/web storybook`

Navigate to http://localhost:8080/ to see the app.

Navigate to http://localhost:4000/ to see GraphQL Playground.

## Database

![Database Diagram](docs/database.png)