Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Latest commit

 

History

History
44 lines (39 loc) · 1.81 KB

README.md

File metadata and controls

44 lines (39 loc) · 1.81 KB

Baltimore Re-entry Program

This project is a combination of Strapi.js Headless CMS and some python scripts for ingesting relevant data.

System Dependencies

Local Development Startup

  1. Once all system dependencies are installed you must startup mongodb as the database backing Strapi. We use docker compose to start it inside a container.
$ docker-compose up
  1. Now we can startup strapi admin console and API's. We do this in watch mode so that changes automatically hot reload.
$ strapi develop
  1. You can now go to the Strapi Admin console in you browser at http://localhost:1337/admin
  2. You will need to create an admin user if it is you first time using that environment
  3. Check out the auto-generated Swagger/OpenAPI documentation and play around with the API by going to http://localhost:1337/documentation/v1.0.0

Ingesting Sample Data

  1. Install python library dependencies
$ pipenv sync
  1. Spawn a virtualenv python shell
$ pipenv shell
  1. Copy the .env.example file to .env so that the environment variables are set
$ cp ./env.example .env
  1. Run the ingestion script to populate a few hundred samples resources
$ python ./ingest/scripts/ingest_resources_csv.py