37 lines
1.6 KiB
Markdown
37 lines
1.6 KiB
Markdown
# lostplaces-backend
|
|
|
|
lostplaces-backend is a django based Webproject. It once wants to become a 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, datalmodel(s) nor features are finalized yet.
|
|
|
|
## 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.
|
|
|
|
* [django](https://www.djangoproject.com/) django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
|
|
* [easy-thumbnais](https://github.com/SmileyChris/easy-thumbnails) A powerful, yet easy to implement thumbnailing application for Django 1.11+
|
|
|
|
### Setting up a (pipenv) virtual environment for development
|
|
|
|
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
|
|
```
|
|
|
|
Visit: [admin](http://localhost:8000/admin) for administrative backend or
|
|
[frontend](http://localhost:8000/)
|
|
|
|
Happy developing ;-)
|