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

FearlessSolutions/baltimore_reentry-strapi

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published