Skip to content

Docker-compose environment to develop and test the graphql and rest api

Notifications You must be signed in to change notification settings

slonl/curriculum-restapi-dev

Repository files navigation

Curriculum Rest API Development

This repository contains a development environment for the opendata.slo.nl curriculum rest api. The rest api needs a working graphql server, so that is also included, but there should be no need for further development here.

Setup

cd curriculum-graphql-server
git submodule update --init
git submodule foreach 'git checkout editor'
cd ..

Usage

docker-compose up

This starts two docker images, one for the rest api on localhost:4500. And one for the graphql server on localhost:3500.

The startup of the graphql server can take a few minutes, it will also run npm install and fetch all the data from the submodules and combine them in a single json file for the graphql server.

Todo

In production the rest api runs with an apache server as proxy. This server also provides the static assets (css, images, etc.) These are currently missing in this setup.

About

Docker-compose environment to develop and test the graphql and rest api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages