https://github.com/devvspaces/gexas-server
https://github.com/devvspaces/gexas-server
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/devvspaces/gexas-server
- Owner: devvspaces
- Created: 2023-09-06T15:31:33.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-06T19:33:02.000Z (almost 3 years ago)
- Last Synced: 2026-07-11T08:32:40.859Z (8 days ago)
- Language: Python
- Size: 83 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gexas Server
Generate charts for exam results.
## Installation
1. Install requirements
Create virtual environment and install requirements
```bash
pip install -r requirements.txt
```
2. Create .env secret file in the root folder `src`
```bash
cp env.dev .env
```
3. Create logs folder
```bash
mkdir logs
```
4. Run migrations
```bash
python manage.py migrate
```
## Usage
1. Run server
```bash
python manage.py runserver
```
2. Make API Post request to `http://localhost:8000/create/`. Provide the `X-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.
```bash
curl -X POST \
-H "X-API-HEADER: " \
-F "file=@" \
http://localhost:8000/create/
```
3. To view the generated html page, go to `http://localhost:8000/`.