Skip to content

developmentseed/moz-proenergia-backend

Repository files navigation

moz-proenergia-backend

Built with

Mozambique Proenergia backend.

Prerequisites

Local Development

Start the dev server for local development:

docker-compose up

Run a command inside the docker container:

docker-compose run --rm web [command]

Running without using Docker

  • Create a PostgreSQL database named proenergia, and another one named proenergia_test
  • Set the environment variables:
  export DJANGO_DB_URL="postgis://user:password@localhost:5432/proenergia"
  export DJANGO_SECRET_KEY="anyTextIsS3cr3t"
  • Install the python dependencies with pip install -r requirements.txt
  • To run the server, use ./manage.py runserver
  • You can create a super user with ./manage.py createsuperuser

GeoDjango may require some additional libraries to be installed in your system, check the documentation or a Docker file in this repository.

To run the tests, use:

DJANGO_DB_URL="postgis://user:password@localhost:5432/proenergia_test" ./manage.py test --settings=proenergia.config.local

About

Mozambique PROENERGIA+ backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •