Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephane-klein/poc-postgraphile-react-upload-to-s3
Dummy Contact application based on Postgraphile + ReactJS
https://github.com/stephane-klein/poc-postgraphile-react-upload-to-s3
apollo apollo-upload-client formik minio poc postgraphile postgresql reactjs
Last synced: 22 days ago
JSON representation
Dummy Contact application based on Postgraphile + ReactJS
- Host: GitHub
- URL: https://github.com/stephane-klein/poc-postgraphile-react-upload-to-s3
- Owner: stephane-klein
- Created: 2020-05-06T15:17:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-10T22:17:40.000Z (almost 2 years ago)
- Last Synced: 2024-04-13T04:26:52.667Z (8 months ago)
- Topics: apollo, apollo-upload-client, formik, minio, poc, postgraphile, postgresql, reactjs
- Language: JavaScript
- Size: 1.13 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dummy Contact application based on Postgraphile + ReactJS with GraphQL file upload support
GraphQL file upload is based on:
- Backend: [`graphile-contrib/postgraphile-plugin-upload-field`](https://github.com/graphile-contrib/postgraphile-plugin-upload-field)
- Frontend: [`jaydenseric/apollo-upload-client`](https://github.com/jaydenseric/apollo-upload-client)Attachments files are stored in [Minio](https://min.io/) Object Storage server (compatible with [S3](https://en.wikipedia.org/wiki/Amazon_S3) API).
## Prerequisites
- [Docker Engine](https://docs.docker.com/engine/) (version `18.06.1-ce`)
- [Docker Compose](https://docs.docker.com/compose/) (version `1.22.0`)
- [nodejs](https://nodejs.org/en/) (version `v12.10.0`)[Homebrew](https://brew.sh/index_fr) instructions:
```sh
$ brew cask install docker
$ brew install git node yarn
```## Getting started
Git clone this project a working directory, next:
```
$ docker-compose up -d postgres
$ ./scripts/load-seed.sh
$ ./scripts/load-fixtures.sh
$ docker-compose up -d
```You can browse in database with [graphiql](https://github.com/graphql/graphiql) on this page: http://127.0.0.1:5000/graphiql
Now that the backend has been started, go to [`frontend/`](frontend/) to start the « Contact Web Frontend ».
## Postgraphile custom image
This project use `stephaneklein/poc-postgraphile-react-upload-to-s3` Docker Image, it is [Postgraphile](https://www.graphile.org/postgraphile/) with some custom configuration and plugins.
Go to [`postgraphile/`](postgraphile/) to rebuild and update this Docker Image.