mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-06-04 13:18:52 -04:00
💾
This commit is contained in:
parent
0696b08d04
commit
314bdf533e
94 changed files with 11 additions and 7 deletions
36
web2-projects/fastapi-location-app/README.md
Normal file
36
web2-projects/fastapi-location-app/README.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# Location API 🗺
|
||||
|
||||
|
||||
Location API built with FastAPI.
|
||||
|
||||
<br>
|
||||
|
||||
## Endpoint /location
|
||||
|
||||
Input data:
|
||||
|
||||
```
|
||||
{"city": "berlin"}
|
||||
```
|
||||
|
||||
Response:
|
||||
|
||||
```
|
||||
{"lat":52.5186925,"lon":13.3996024,"tzone":1}
|
||||
```
|
||||
|
||||
|
||||
### Installing
|
||||
|
||||
```
|
||||
virtualenv -p python3.9 venv
|
||||
source venv/bin/activate
|
||||
pipenv install
|
||||
```
|
||||
|
||||
### Running
|
||||
|
||||
|
||||
```
|
||||
python3 main.py
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue