This repository has been archived on 2022-05-05. You can view files and clone it, but cannot push or open issues or pull requests.
userausfall/README.md

32 lines
628 B
Markdown
Raw Permalink Normal View History

2021-10-26 13:48:15 +02:00
# Userausfall
2021-02-24 21:09:31 +01:00
2021-10-26 13:48:15 +02:00
User account management for systemausfall.org
2021-04-12 09:55:30 +02:00
2021-10-26 13:48:15 +02:00
## Quick Development Setup
2021-04-13 09:06:28 +02:00
2021-10-26 13:48:15 +02:00
Bootstrap your venv and project (youll need to do this only once):
2021-04-13 09:06:28 +02:00
2021-10-26 13:48:15 +02:00
```shell
# Create a virtual environment
python3 -m venv --system-site-packages venv
# Activate your venv
. venv/bin/activate
# Install dependencies
pip install --editable .
2021-04-13 09:06:28 +02:00
```
2021-10-26 13:48:15 +02:00
In the future just run:
```shell
# Activate your venv
. venv/bin/activate
# Configure the settings
export DJANGO_SETTINGS_MODULE=userausfall.settings
# Apply database migrations
python3 -m django migrate
2021-04-13 09:06:28 +02:00
```
2021-10-26 13:48:15 +02:00
Start the API development server with:
```shell
python3 -m django runserver
2021-04-13 09:06:28 +02:00
```