This StepZen GraphQL API serves as the middle layer for the Kid Vault app, which was built as part of the StepZen GraphQL Challenge 2022.
The front-end and back-end code repositories can be viewed here:
The deployed version of the Flask back-end with a mock Postgres database is viewable here:
NOTE:
Heroku often takes some time to wake up! Don't forget to give it a minute.
The deployed version of our app is viewable here:
To install this repository on your computer, please follow these instructions:
If you haven't already, be sure to sign up for and install StepZen.
Detailed StepZen installation instructions are available here.
-
Register for COVID Act Now to get your API key.
-
Setup your Flask Back-end with your Postgres database.
- You can choose to seed with our mock data .csv file or add your own, but you'll need our schemas/tables for this API to function properly!
-
Create .env file with:
STEPZEN_COVID_API_KEY=[YOUR_API_KEY_HERE]
- Create config.yaml file with:
configurationset:
- configuration:
name: postgresql_config
uri: [YOUR_POSTGRES_DB_URI_INFO_HERE]
- configuration:
name: covid_api_config
apiKey: STEPZEN_COVID_API_KEY
NOTE:
Don't forget to add the config.yaml and .env to a .gitignore file!
- Run stepzen:
$ stepzen start
- Check your terminal for the
localhost:5001
address to enter the playground for the API!
You Made It! Enjoy and please contact @melawong and @anita-lee with any issues or questions.