pflaenz.li/README.md

46 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2023-04-01 12:13:55 +02:00
# Pflänz.li
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
2023-07-08 14:32:05 +02:00
[![Build Status](https://drone.thisfro.ch/api/badges/pflaenz.li/pflaenz.li/status.svg?ref=refs/heads/main)](https://drone.thisfro.ch/pflaenz.li/pflaenz.li)
2023-04-01 12:13:55 +02:00
## Idea
A platform where people can trade their plants. You can post what you have and search for others with [filters](#filters). The aim is to make it easier to trade plants and collect as few data as possible. Only the email/username and a postal code is required.
## Tech stack
- [Django](https://djangoproject.com/)
2023-04-05 18:22:34 +02:00
- [Postgres](https://www.postgresql.org/)
2023-04-01 12:13:55 +02:00
## Admin dashboard
Find it under `/admin`
## Filters
### Implemented
- Distance between postal codes
- Search within title
### Ideas
It would be nice to have categories somehow, but it would be hard to make it comprehensive.
:warning: This list is work in progress!
Searching with filters such as:
| Filter Name | Type | Input type |
|--------------|---------------|------------|
2023-07-08 14:32:05 +02:00
| Distance | `int` | numfield |
| ZIP code | `int` | numfield |
2023-04-01 12:13:55 +02:00
| Name | `string` | textfield |
| Category | `Category` | dropdown |
2023-10-15 17:29:26 +02:00
## Setup
When deploying, don't forget to pull the PLZ index and save it to the database using
```
python manage.py getplzindex --force
```
2023-04-01 12:13:55 +02:00
## Development
2023-04-05 18:22:34 +02:00
To get started with development, see [DEVELOPMENT.md](DEVELOPMENT.md)
## Open Source Data
2024-02-10 12:18:29 +01:00
For calculating distances between zip codes, the `Official index of cities and towns including postal codes and perimeter ` is used.
Source: https://opendata.swiss/en/dataset/amtliches-ortschaftenverzeichnis-mit-postleitzahl-und-perimeter