Skip to content
GraphQL API for the conference.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content
media
server
shims
utils
.env.template
.gitignore
.nvmrc
.prettierrc
Procfile
README.md
app.json
package-lock.json
package.json
queries.md
tsconfig.json
tslint.json

README.md

Codeship Status for ReactFinland/graphql-api

GraphQL API for React Finland 2018

Simple GraphQL API for the conference.

To see the query API:

  1. NODE_ENV="development" npm start
  2. http://localhost:3000/graphql-2018 or http://localhost:3000/calendar-2018.ics (calendar)

Image Processing

The images are pushed to Cloudinary and it's used as our image CDN. Remember to set .env for local development if you want to use images:

.env

CLOUDINARY_CLOUD_NAME=react-finland
CLOUDINARY_API_KEY=<get from Cloudinary account>
CLOUDINARY_API_SECRET=<get from Cloudinary account>

Also remember to set the same on the host of the API.

You can access images through http://localhost:3000/graphql-2018/images. Example: http://localhost:3000/graphql-2018/images/ken.jpg.

Webhooks

Heroku to Netlify

The API has been connected to the site using a webhook so that it builds whenever the API changes:

  • heroku config:set REBUILD_SITES=<Netlify urls separate by comma go here> -a react-finland-api

Remember to run the server in production mode. That will enable site rebuilding hook!

You can’t perform that action at this time.