2021-09-06 12:09:05 +02:00
|
|
|
# Wulkanowy Web
|
|
|
|
|
|
|
|
🌋 Unofficial VULCAN UONET+ browser client for students and their parents
|
|
|
|
|
|
|
|
![GitHub Workflow Status](https://github.com/wulkanowy/wulkanowy-web/workflows/Python%20application/badge.svg)
|
|
|
|
|
|
|
|
## Join our Discord server!
|
|
|
|
|
|
|
|
[![Discord](https://discordapp.com/api/guilds/390889354199040011/widget.png?style=banner2)](https://discord.com/invite/vccAQBr)
|
|
|
|
|
|
|
|
# Development
|
|
|
|
|
|
|
|
## 1. Install dependencies
|
|
|
|
|
|
|
|
```sh
|
|
|
|
pip install -r requirements.txt
|
|
|
|
npm i --prefix frontend
|
|
|
|
```
|
|
|
|
|
|
|
|
## 2. Make migrations
|
|
|
|
|
|
|
|
```sh
|
|
|
|
python manage.py makemigrations
|
|
|
|
python manage.py migrate
|
|
|
|
```
|
|
|
|
|
|
|
|
## 3. Start the server
|
|
|
|
|
|
|
|
```sh
|
|
|
|
python manage.py runserver
|
|
|
|
```
|
|
|
|
And in frontend:
|
|
|
|
```shell
|
|
|
|
cd frontend
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
|
|
|
# Docker
|
|
|
|
|
|
|
|
With docker compose
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker-compose up -d
|
|
|
|
```
|
|
|
|
|
|
|
|
Without docker compose
|
|
|
|
|
|
|
|
```sh
|
|
|
|
docker build -t wulkanowy/web .
|
|
|
|
docker run -d -p 8000:8000 wulkanowy/web
|
|
|
|
```
|