damboscolo / yosemite-campings

Find available Yosemite campings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yosemite Campings

Find available Yosemite Campings

Creating new project

https://docs.djangoproject.com/en/1.8/intro/tutorial01/

Install python on MacOs

brew install python3

How to Run

Before run, configure:

pip3 install -r requirements.txt
source .env.example

Then run:

python3 manage.py runserver

Endpoints

Call endpoint passing the campsite id

Example:

curl http://127.0.0.1:8000/campsites/232449?start_date=2022-07-01
curl http://127.0.0.1:8000/campsites/232447?start_date=2022-08-01
curl http://127.0.0.1:8000/campsites/232450?start_date=2022-09-01

For all campsites on CAMPSITE_ID env var

curl http://127.0.0.1:8000/campsites?start_date=2022-08-01

Some Campings

id name url
232447 Upper Pines Campground https://www.recreation.gov/camping/campgrounds/10004152
232450 Lower Pines Campground https://www.recreation.gov/camping/campgrounds/232450
232449 North Pines Campground https://www.recreation.gov/camping/campgrounds/232449

Copyright Daniele Boscolo.

About

Find available Yosemite campings

License:The Unlicense


Languages

Language:Python 97.9%Language:Shell 1.8%Language:Procfile 0.3%