- Introduction
- Installation
- Front-end
- Back-end
- Deployment Tools
- Development
- Deployment
- Maintainers
Freedom Link is a web application that helps people through starting the petition process for those seeking early release of loved ones from the Illinois Department of corrections. Currently, the platform is focused on those who may be eligible for release during the COVID-19 pandemic.
In order to begin working on the front end, you'll need to perform the following steps:
-
Install node.js
-
git clone https://github.com/cs394-s20/freedom-generator.git
-
cd freedom-generator
-
npm i
-
Install Python >=3.7
-
cd freedom-generator/api
-
pip install virtualenv
-
virtualenv env
-
On Windows run:
env\Scripts\activate
Otherwise run:
source env/bin/activate
pip install -r requirements.txt
-
Get AWS Credentials from the AWS root account owner for this project (see Maintainers). If there is not a maintainer who owns the AWS root account, the AWS resources should be set up as described here.
-
Set up the AWS Command Line Interface (CLI) using the credentials from step 1
-
cd freedom-generator/deploy
-
If you have completed the installation for API development, skip to step 7.
-
Install Python >=3.7
-
pip install virtualenv
-
virtualenv env
-
On Windows run:
env\Scripts\activate
Otherwise run:
source env/bin/activate
pip install -r requirements.txt
If you're not testing the integration between the API and the front-end, use npm run start:production
to start the React App with API requests to the live API
Otherwise, to test integration with an updated API (served on localhost:3001) use npm start
To start development:
-
cd freedom-generator/api
-
On Windows run:
env\Scripts\activate
Otherwise run:
source env/bin/activate
The functionality is contained within idoc.py, while the Lambda function is in idoc_lambda_func.py. In order to test locally, call:
python api_server.py
This will start a Python Flask server on http://localhost:3001 that has the same paths as the live AWS API Gateway resource.
To deploy the front-end:
cd freedom-generator/
npm run deploy-web
To deploy the API:
cd freedom-generator/
npm run deploy-api
- John Laboe
- Rochelle (Chelly) Compendio
John Laboe