An assessment the for RAKT Engineering Challenge as part of my application for the Senior Django Developer role at RAKT Innovations.
This is a Python/Django containerized project that setups and loads the CSV data on the database on start. Please check the file foodtruck_from_csv.py to see the data load code.
After the container initialization please wait until the server completes loads.
MAP URL: http://localhost:8000/finder/map/?dist=300&point=-122.39015723961076,37.72441324329633&limit=5
More Details on ASSIGNMENT.md
- Docker
- PostgreSQL
- Python
- Packages:
- Django
- More Details on requirements.txt
Do you have Docker Installed?
-
If make is installed you can use the following command:
make dev
But if you don't have make installed follow the below steps:
-
docker-compose build --no-cache docker-compose up -d
-
OPEN http://localhost:8000/ - On open will be redirected to the Map showing food truck locations.
-
url: http://localhost:8000/finder/map/?dist=300&point=-122.39015723961076,37.72441324329633&limit=5
-
url: http://localhost:8000/api/v1/food-truck/?dist=300&point=-122.39015723961076,37.72441324329633&limit=5
-
username: superuser password: password admin url: http://localhost:8000/admin
Note that maybe you will need to give execution permission to the file entrypoint.sh - navigate to the folder. The explanation is that this is a development environment and the local files are mounted in the docker container.
chdmod +x ./entrypoint.sh
Thank you for your time, and I hope we can talk soon.