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

https://github.com/joinhandshake/code-challenge-boilerplate-graphql

Graphql Code challenge stack
https://github.com/joinhandshake/code-challenge-boilerplate-graphql

Last synced: 12 months ago
JSON representation

Graphql Code challenge stack

Awesome Lists containing this project

README

          

# Handshake Code Challenge Graphql Boilerplate

## Quickstart

Start Prisma + Postgres API

```
docker-compose up -d
```

Deploy Prisma schema

```
yarn deploy
```

Serve the front end

```
yarn start
```

Go to http://localhost:1234

## API

This repo uses a Prisma backed API.
[prisma](https://www.prisma.io/docs/understand-prisma/)
[writing migrations in prisma](https://www.prisma.io/docs/get-started/02-change-data-model-JAVASCRIPT-c001/)
depends on docker + node

Setup locally with `docker-compose up -d`
To deploy your Prisma API locally after making changes to the schema, run `yarn deploy`

Once the server is running, you can interact with the Graphql API at http://localhost:4466/

## Front end

### Parcel

The front end is hosted by [parcel](https://parceljs.org)

Serve front end assets with `yarn start` on localhost:1234

### React

The front end is setup with React + Apollo to see data. See client/index.js