https://github.com/michaelbukachi/koa-ex
https://github.com/michaelbukachi/koa-ex
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaelbukachi/koa-ex
- Owner: michaelbukachi
- Created: 2023-05-16T13:40:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-16T13:45:08.000Z (about 2 years ago)
- Last Synced: 2025-01-11T19:13:03.927Z (5 months ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Setup
Install dependencies
```bash
pip install -r requirements.txt`
```
Run migrations
```bash
python manage.py migrate
```
Run server
```bash
python manage.py runserver
```
Access doc at http://127.0.0.1:8000/redoc/Sample request:
```bash
curl -X POST -H "Content-Type: application/json" -d '{"data":"...."}' http://127.0.0.1:8000/api/v1/grid/
```Run tests with
```bash
pytest
```## Assumptions
1. There's only one pair of closest points for a given set of points
2. Point values are integers