2020-07-27 09:56:55 +02:00
# lostplaces-backend
2020-07-29 11:55:17 +02:00
lostplaces-backend is a django based Webproject. It once wants to become a
2020-07-27 09:56:55 +02:00
software which allows a group of urban explorers to manage, document and
share the locations of lost places while not exposing too much / any
information to the public.
The software ist currently in early development status, neither scope,
2020-07-29 11:55:17 +02:00
datalmodel(s) nor features are finalized yet.
2020-07-27 09:56:55 +02:00
## Dependencies
Right now it depends on the following non-core Python 3 libraries. These can be installed using the package manager of your distribution
or into the venv locally.
2020-07-29 11:55:17 +02:00
* [django ](https://www.djangoproject.com/ ) django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
* [django-thumbs-v2 ](https://github.com/rrmerugu/django-thumbs-v2 ) Create thumbnails for your images with django.
2020-07-27 09:56:55 +02:00
Currently the the repo is quite a mess, with full Python 3.8 site-packages
in-repo and other sketchy stuff. This will be fixed sometime.
2020-07-29 11:55:17 +02:00
### Setting up a (pipenv) virtual environment for development
2020-07-27 09:56:55 +02:00
2020-07-29 11:55:17 +02:00
After having obtained the repository contents (either via .zip download or git clone), you can easily setup a pipenv virtual environment. The repo provides a Pipfile for easy dependency management that does not mess with your system.
```
$ cd lostplaces-backend
$ pipenv install
$ pipenv shell
(lostplaces-backend) $ lostplaces/manage.py migrate
(lostplaces-backend) $ lostplaces/manage.py createsuperuser
(lostplaces-backend) $ lostplaces/manage.py runserver
```
### Returning to the venv
```
$ cd lostplaces-backend
$ pipenv shell
(lostplaces-backend) $ lostplaces/manage.py runserver
```
2020-07-27 09:56:55 +02:00
Visit: [admin ](http://localhost:8000/admin ) for administrative backend or
[frontend ](http://localhost:8000/ )
2020-07-29 11:55:17 +02:00
Happy developing ;-)