Skip to content

skrepkaq/Random-food-place

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random food place

Сan't decide where to eat?

Find a random food place in your city!

Using Django framework

Yandex maps API to get a list of food places and show them on the map

Prikol .png

Installation

  1. Get Yandex "Places HTTP API" and "JS and Geocoder API"
  2. Create and activate venv
  3. Fill API KEYS in src/places/config.py file
  4. Use the pip to install libs from requirements.txt.
pip install -r requirements.txt
  1. Migrate DB using manage.py file in src directory
python manage.py makemigrations
python manage.py migrate

Usage

  1. Run server:
python manage.py runserver
  1. Go to http://localhost:8000
  2. Enter the city name and click "Поиск"