GRANDstack app to view COVID-19 related data
APACHE-2.0 License
This project is a starter for building a GRANDstack (GraphQL, React, Apollo, Neo4j Database) application. There are two components to the starter, the UI application (in React and Angular flavors) and the API app (GraphQL server).
You need a Neo4j instance, e.g. a Neo4j Sandbox, a local instance via Neo4j Desktop, Docker or a Neo4j instance on AWS, Azure or GCP or Neo4j Cloud
For schemas using the @cypher
directive (as in this repo) via neo4j-graphql-js
, you need to have the APOC library installed, which should be automatic in Sandbox, Cloud and is a single click install in Neo4j Desktop. If when using the Sandbox / cloud you encounter an issue where an error similar to Can not be converted to long: org.neo4j.kernel.impl.core.NodeProxy, Location: [object Object], Path: users
appears in the console when running the React app, try installing and using Neo4j locally instead.
A good tutorial can be found here: https://www.youtube.com/watch?v=rPC71lUhK_I
api/.env
), and click "Create".api/.env
are used. Leave them as follows: NEO4J_URI=bolt://localhost:7687 NEO4J_USER=neo4j NEO4J_PASSWORD=letmein
/api
Install dependencies
(cd ./ui-react && npm install)
(cd ./ui-angular && npm install)
(cd ./api && npm install)
Start API server
cd ./api && npm start
/ui-react
This will start the GraphQL API in the foreground, so in another terminal session start the React UI development server:
Start the React UI server
cd ./ui-react && npm start
/ui-angular
A UI built with Angular, Apollo and the Clarity Design System is also available.
Start the Angular UI server
cd ./ui-angular && npm start
See the project releases for the changelog.
Zeit Now v2 can be used with monorepos such as grand-stack-starter. now.json
defines the configuration for deploying with Zeit Now v2.
now secret add NEO4J_URI bolt+routing://<YOUR_NEO4J_INSTANCE_HERE>
now secret add NEO4J_USER <YOUR_DATABASE_USERNAME_HERE>
now secret add NEO4J_PASSWORD <YOUR_DATABASE_USER_PASSWORD_HERE>
now
now
in /api
and choose package.json
when prompted.REACT_APP_GRAPHQL_API
based on the API deployment URL from step 1 in ui-react/.env
now
in /env
and choose package.json
when prompted.You can quickly start via:
docker-compose up -d
If you want to load the example DB after the services have been started:
docker-compose run api npm run seedDb
This project is licensed under the Apache License v2. Copyright (c) 2018 Neo4j, Inc.