https://github.com/helloyeew/sankasaint-ec
EC app for election in Software project subject to select a next president powered by ayaka.
https://github.com/helloyeew/sankasaint-ec
Last synced: 10 months ago
JSON representation
EC app for election in Software project subject to select a next president powered by ayaka.
- Host: GitHub
- URL: https://github.com/helloyeew/sankasaint-ec
- Owner: HelloYeew
- License: mit
- Created: 2022-09-29T18:18:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-01T15:28:28.000Z (over 3 years ago)
- Last Synced: 2025-04-05T20:42:30.548Z (about 1 year ago)
- Language: Python
- Homepage: https://sankasaint.helloyeew.dev
- Size: 18.9 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sankasaint Election Committee
EC app for election in Software project subject to select James Brucker as a next president powered by [ayaka framework](https://github.com/HelloYeew/ayaka).
## Setup
```bash
pip install virtualenv
virtualenv venv
source venv/bin/activate # Windows : venv\Scripts\activate
pip install -r requirements.txt
```
Copy `.env.example` to `.env` and continue on database migration
```bash
python manage.py migrate
python manage.py loaddata seed/apps.json
python manage.py createsuperuser
# Follow the instruction
```
Now to run the server
```bash
python manage.py runserver
```
## Dump database data
```bash
python manage.py dumpdata apps > seed/apps.json --indent 4
```
## Load database data
```bash
python manage.py loaddata seed/apps.json
```
## Import legacy data to new database tables
1. Run `load database data` section
2. Get in utility page `/utils` and run `Import legacy data` button
Note : If you are not loading the data from the dump file, the migration will fail and you need to reset the database and do it again.
## Run tests
```bash
python manage.py test
```