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 installInstall client:
cd packages/client
npm installInstall server:
cd packages/server
npm installTest the project:
npm run ciBefore starting the server you need to create some .env files with the keys for the external libs:
- For local development of the
clientcreate a file inpackages/clientcalled.env.develop - For the production release create a file in
packages/clientcalled.env.release - For local development of the
servercreate a file inpackages/servercalled.env
Start the server
cd packages/server
npm startThis 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 startThis will open front-end app on http://localhost:8080/
