Skip to content

[DEPRECATED] Main repository of the Cadasta platform. Technology to help communities document their land rights around the world.

License

Notifications You must be signed in to change notification settings

Cadasta/cadasta-platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b1b7e96 · May 24, 2020
Jan 11, 2018
May 24, 2020
Feb 8, 2016
Dec 7, 2017
May 19, 2020
Feb 14, 2019
Apr 18, 2016
Nov 30, 2015
Dec 2, 2016
Feb 9, 2018
May 21, 2020
Jun 15, 2018
Jan 22, 2016
Apr 22, 2016
Jan 24, 2018
Jan 24, 2018
Jul 27, 2016
Feb 5, 2018
Feb 5, 2018
May 24, 2020
Jan 24, 2018
Apr 25, 2018
Apr 4, 2018
Feb 8, 2016
Feb 5, 2018

Repository files navigation

cadasta-platform

build-status-image req-status-image

Install for development

Install:

Clone the repository to your local machine and enter the cadasta-platform directory. Run the following commands to access the virtual machine.

Provision the VM:

vagrant up --provision

SSH into the VM (automatically activates the Python virtual environment):

vagrant ssh

Enter the cadasta directory and start the server:

cd cadasta
./runserver

To add the Django debug toolbar, use ./runserver --debug.

Open http://localhost:8000/ in your local machine's browser. This will forward you to the web server port on the VM and you should see the front page of the platform site.

See the wiki for details on loading test data.

Run tests

Within the development VM, from the /vagrant directory run:

py.test cadasta

To get coverage reports run:

py.test cadasta --cov=cadasta  --cov-report=html

This creates a HTML report under htmlcov. See pytest-cov docs for other report formats.

AWS Deployment

Do this:

vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
vagrant plugin install vagrant-aws
...

vagrant up --provider=aws ...

Acknowledgements

Cadasta is grateful for the technical considerations and support provided by: