Setup
Prerequisites
Running Core Instance.
Setup environment variables:
MAPBOX_TOKEN=${mapbox_token}SERVER_URL=${server_url}TYPES_URL=${types_url}Mapbox Token: Acquire access Token
Server Url: Core instance url
Example:
https://gissy-graphql.herokuapp.com/.Types Url: JSON file url.
Example:
https://gissy-graphql.herokuapp.com/types.Note that the
Coreinstance auto-generating types in/typespath.// Types JSON example{"types": {"Node": {"fields": [{"name": "id","type": "ID"},...],"typeName": "ObjectTypeDefinition"},"Edge": {"fields": [{"name": "bikeID","type": "String"},...],...}},...}
Development
- Setup environment variables within
.env.development
# Productionyarn develop# Componentsyarn storybook
Deployment
- Setup environment variables within
.env.production
# Application buildyarn build# Storybook Buildyarn build-storybook# Run application deploymentyarn serve
- Serve
publicfolder for theGissy-Dashboardinstance. - Serve
storybook-staticfolder forstorybookinstance.