Django web application where a user can create an account and fill in their address details on their profile which the Google Geocoding API will convert into latitude and longitude. All the registered users will be shown by their location on a full page of google maps.
When clicking the user icon, it will display the user’s profile in a popup. User can update their profile.
-
Follow the instructions to get a key
-
Enable the following services under API Restrictions
To run this project in your development machine, follow these steps:
-
(optional) Create and activate a virtualenv (you may want to use virtualenvwrapper).
-
Fork this repo and clone your fork:
git clone https://github.com/Minenhle-Ngubane/kartoza-technical-assignment.git
-
Install dependencies:
pip install -r requirements.txt
-
Create a development database:
./manage.py migrate
-
Configure your API_KEY in your settings.py file:
# Google API Key API_KEY = 'YOUR API KEY'
-
Configure your API_KEY in your base.html JS script tag file:
<!-- Async script executes immediately and must be after any DOM elements used in callback. --> <script src="https://maps.googleapis.com/maps/api/js?key=YOUR GOOGLE API KEY GOES HERE&libraries=places&callback=initMap"async></script>
-
If everything is alright, you should be able to start the Django development server:
./manage.py runserver
-
Open your browser and go to http://127.0.0.1:8000