Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wieczorek1990/restaurants
https://github.com/wieczorek1990/restaurants
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/wieczorek1990/restaurants
- Owner: wieczorek1990
- Created: 2019-03-28T10:10:56.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-28T16:32:38.000Z (almost 6 years ago)
- Last Synced: 2024-11-24T15:16:21.645Z (2 months ago)
- Language: Python
- Size: 618 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
restaurants
===========unrealists Python Challenge.
# Installation & Running
```
# Asumming Ubuntu
sudo apt install fish virtualenvvirtualenv -p python3 env
source env/bin/activategit clone [email protected]:wieczorek1990/restaurants.git
cd restaurants./instal.fish
./run_dev.fish
# or
./run_prod.fish
```# Docker
Host port is 80.
```
sudo apt install -y docker.io docker-compose
docker-compose up
```# Routes
* `/restaurants/near/:lat/:lon`
* `/restaurants/near/:address`
* `/restaurants/combo/:cuisine_a/:cuisine_b`# Sample queries
```
http GET 'localhost:5000/restaurants/near/52.538554/13.4102856'
http GET 'localhost:5000/restaurants/near/Berlin'
http GET 'localhost:5000/restaurants/combo/noodles/vietnamese'
```or
```
http GET 'localhost/restaurants/near/52.538554/13.4102856'
http GET 'localhost/restaurants/near/Berlin'
http GET 'localhost/restaurants/combo/noodles/vietnamese'
```