Skip to content
GraphQL Server for SimpliCity II
Branch: development
Clone or download
Pull request Compare This branch is 1 commit ahead, 31 commits behind cityofasheville:development.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api
deployment
examples
.babelrc
.dockerignore
.gitignore
Dockerfile
LICENSE
README.md
coa_web_login.js
example.env
gke.yml
package-lock.json
package.json
resolvers.js
schema.js
server.js
yarn.lock

README.md

SimpliCity II GraphQL Server

GraphQL Server for the new SimpliCity II system

Installation

Clone the repository and run npm install

git clone https://github.com/apollostack/frontpage-server
cd frontpage-server
npm install

Starting the server

npm start

The server will run on port 8080. You can change this by editing server.js.

Uploading data

For the demo we need to upload a couple CSV files to the database, one for permits and one for review trips. Once the CSV files are prepared, edit the paths in create_permits_table.sql and create_trips_table.sql and run the following commands:

psql -h {database-host} -d {database-name} -U {database-user} -W -f create_permits_table psql -h {database-host} -d {database-name} -U {database-user} -W -f create_trips_table

Acknowledgements

Based on the Apollo Hello World example server.

You can’t perform that action at this time.