Skip to content

jarnoln/atange-backend

Repository files navigation

Atange backend

github codecov Code style: black

Backend for Atange

Created using:

Install

Get sources:

git clone https://github.com/jarnoln/atange-backend.git

Create virtual environment and install Python packages:

mkvirtualenv -p /usr/bin/python3 atange
pip install -r requirements.txt

Generate site configuration:

python atange/generate_site_config.py atange/site_config.py

Initialize DB:

python manage.py migrate
python manage.py makemigrations collective
python manage.py migrate collective

Run tests:

python manage.py test

Run development server:

python manage.py runserver

Deploy

Install Ansible

pip install -r requirements-deploy.txt

Edit ansible/inventory.example with your actual host information and rename it to ansible/inventory. Then:

ansible-playbook -i ansible/inventory ansible/provision-deb.yaml
invoke deploy --user=[your_username] --host=[your_host]

This will create atange/site_config.py-file with default values, but they need to be replaced with actual host-specific values (especially ALLOWED_HOSTS and CORS_ALLOWED_ORIGINS)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages