Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/city-of-helsinki/tpr-esteettomyyssovellus
TPR Esteettömyyssovellus Backend
https://github.com/city-of-helsinki/tpr-esteettomyyssovellus
Last synced: 6 days ago
JSON representation
TPR Esteettömyyssovellus Backend
- Host: GitHub
- URL: https://github.com/city-of-helsinki/tpr-esteettomyyssovellus
- Owner: City-of-Helsinki
- License: mit
- Created: 2021-05-20T10:07:28.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-11-06T08:06:24.000Z (3 months ago)
- Last Synced: 2024-11-18T23:15:46.735Z (2 months ago)
- Language: Python
- Size: 790 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tpr-esteettomyyssovellus
TPR Esteettömyyssovellus Backend
requires python 3.9 and django 3.2.3
## to get started: Linux
## some of these steps might be optional
## install libraries to linux:
```
sudo apt-get install postgresql
sudo apt-get install python-psycopg2
sudo apt-get install libpq-dev
```## if libpq-dev doesn't work run, install dependencies manually, e.g. (NOTICE THIS IS EXAMPLE -> VERSION NUMBERS ETC):
```
sudo apt-get install libpq5=10.17-0ubuntu0.18.04.1
```## for ~ubuntu/linux users for development it's recommended to use venv:
```
sudo apt-get install python3.9-dev
sudo apt-get install python3.9-venv
```## to create venv (run only once/first time starting, inits the venv folder):
```
python3.9 -m venv venv
```## activate venv (application needs to be started from venv if using it):
```
source venv/bin/activate
```## install dependecies (without docker(?)):
```
pip install -r requirements.txt
```## to run the server run:
```
cd accessibility/
python manage.py runserver 0.0.0.0:8000
```## if nothing seems to work double check: venv python version :D hours used: 3 (+ dependencies)
## also one might need in some cases do
```
(python manage.py makemigrations)
python manage.py migrate
```# DOCKER
Requires docker and docker-compose on the system.
To build:
./rebuild_dev.shTo run:
./run_dev.sh(might need sudo !!)