Gitlab hosts the main repo Mirror repo is at Github
This is the indrz API backend code repository.
documentation here indrz Docs
We are working on making the setup easier, with an all docker development environmentment. The production deployment aswell will be an all docker deployment.
- Copy
.env-example
into a new file called.env
configure your secret varialbles, this is in the root folder allong with thedocker-compose-local.yml
- Build indrz_api image
docker build -t indrz_api:latest -f devops/local/indrz_api/Dockerfile ./indrz
- Run indrz_api on localhost
docker-compose -f docker-compose-local.yml up -d
- OPTIONAL load demo data for testing
make load_demo_data
- Visit http://localhost:8000/api/v1/admin to login using Django admin
- Visit http://localhost:8000/api/v1/docs to see Swagger docs (not you must be logged into Django Admin)
Sure, here are the instructions in Markdown format:
Follow these steps to set up your local environment:
First, you need to have Docker installed on your machine. You can download Docker from the official Docker website and follow the installation instructions for your specific operating system.
Next, clone the project repository to your local machine using the git clone
command:
git clone https://gitlab.com/indrz/indrz-backend.git
After cloning the repository, navigate to the project directory using the cd
command:
cd indrz-backend
Now, build the Docker images for the project using the docker-compose build
command:
docker-compose -f docker-compose-local.yml build
After building the Docker images, you can start the Docker containers using the docker-compose up
command:
docker-compose -f docker-compose-local.yml up
Finally, verify that the setup is correct by navigating to localhost
in your web browser. You should see the application running.
Please note that you might need to install additional software or perform additional configuration steps depending on the specific requirements of the project. These steps should be documented in the project's README file or other documentation.
- Python (3.x)
- Django – Web Framework Backend
- Django Rest Framework – Django Rest Web Framework our API
- PostGIS – Spatial Database extension to Postgresql
- PGRouting - Routing extension to PostGIS and Posgresql
- Postgresql – Database
- Geoserver – Web map server to serve and create, maps and data
- Ubuntu server - Server
- Docker, docker-compose - Docker, Docker-Compose
Contact: Michael Diener