Generate charts for exam results.
-
Install requirements
Create virtual environment and install requirements
pip install -r requirements.txt
-
Create .env secret file in the root folder
src
cp env.dev .env
-
Create logs folder
mkdir logs
-
Run migrations
python manage.py migrate
-
Run server
python manage.py runserver
-
Make API Post request to
http://localhost:8000/create/
. Provide theX-API-HEADER
and the csv file to the file field. The make request. This will generate the files required and organize them accordingly. These will return a url to you in the json response. You can use this url to view the processed html page.curl -X POST \ -H "X-API-HEADER: <API_KEY>" \ -F "file=@<CSV_FILE>" \ http://localhost:8000/create/
-
To view the generated html page, go to
http://localhost:8000/<URL_FROM_RESPONSE>
.