Streaming Platform Demo
- Apollo GraphQL Client running at https://streams.codestar.nl/
- Apollo GraphQL Server running at https://streams-server.herokuapp.com/
Install project:
npm install
Install client
:
cd packages/client
npm install
Install server
:
cd packages/server
npm install
Test the project:
npm run ci
Before starting the server you need to create some .env
files with the keys for the external libs:
- For local development of the
client
create a file inpackages/client
called.env.develop
- For the production release create a file in
packages/client
called.env.release
- For local development of the
server
create a file inpackages/server
called.env
Start the server
cd packages/server
npm start
This will open a browser on http://localhost:4000/ with the GraphiQL editor. You can try the following query:
query GetStations {
stations(pageSize: 10) {
stations {
id
lat
lng
text
isFocussed
isSelected
}
}
}
Start the client
cd packages/client
npm start
This will open front-end app on http://localhost:8080/