- Make sure you have GDAL in your system installed.
Download and setup the GDAL executable file from OSGeo4W network installer - Now, download the docker image for postgreSQL and POSTGIS extension for database.
Run the cmd -docker run --name=postgis -d -p 5432:5432 -e POSTGRES_DB=pothole_patrol_db -e POSTGRES_USER=postgis -e POSTGRES_PASSWORD=postgis postgis/postgis
Above command is to executed only for first time to create the container and from next time you just need to start the container.
Above command will also come in handy when you update the schema of DB like adding more tables or fields. So, for that first remove the container and run the above cmd.
Imp cmds :
docker start postgis
docker stop postgis
docker remove postgis
docker ps [-a] - Next, git clone this repo change directory to
BE-Project-Pothole-Detection-backend\pothole_patrol_backend\ - Make virtual environment for project using
virtualenv venv
Activate virtual env using cmd -venv\scripts\activate
For deactivating virtual env when you exit project at the end, run the cmd -deactivate - Run the cmd -
pip install -r requirements.txtto install the required libraries for project. - Now, we need to create tables in DB running in docker. So, make migrations for django models.
Run below cmds one after other -
python manage.py makemigrations
python manage.py migrate - Finally, run the django server.
python manage.py runserver 0.0.0.0:8000
-
Notifications
You must be signed in to change notification settings - Fork 0
DRF APIs required for running app, processing traffic camera videos, pothole report analysis.
License
shubham-techie/BE-Project-Pothole-Patrol-Backend
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
DRF APIs required for running app, processing traffic camera videos, pothole report analysis.
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published