Coder Social home page Coder Social logo

lunaasefaw / sawps Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kartoza/sawps

0.0 0.0 0.0 141.21 MB

SANBI WPS

Home Page: https://kartoza.github.io/sawps/

License: GNU Affero General Public License v3.0

Shell 0.17% JavaScript 5.35% Python 42.30% R 0.01% TypeScript 24.66% CSS 13.86% Makefile 0.13% HTML 9.81% Dockerfile 0.19% SCSS 3.42% Nix 0.10%

sawps's Introduction

Image Tag Jenkins Status codecov

๐Ÿฆ SANBI WPS

The SANBI Wildlife Protection System is a platform to track the population levels of endangered wildlife.

image

The work is funded by the South African National Biodiversity Institute

This project is implemented by Kartoza under contract to IDS.

๐Ÿ“’ License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

Read the full license.

๐Ÿง‘๐Ÿฝโ€๐Ÿ’ป Development

Please follow the Kartoza coding standards.

๐Ÿƒโ€โ™‚๏ธ How To Run Project with Visual Studio Code

Copy and customize environnment file: Create a copy of the deployment/.template.env file and name it deployment/.env. Update the deployment/.env file with your project-specific settings. image

Ensure Dev Containers extension is installed image

Build and open project in devcontainer: press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux) to open the Command Palette. Type Dev Containers: Rebuild and Reopen in Container and select it to reopen the folder inside the devcontainer. image

Change the permissions of the django_project folder:

chmod -R a+rw django_project

Install dependencies inside the container: Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux), type Tasks: Run Tasks and select it. Choose React: Install dependencies to install the necessary dependencies.

image

image

Run the migrations inside the container: Press Cmd+Shift+P (macOS) or Ctrl+Shift+P (Windows/Linux), type Tasks: Run Tasks and select it. Choose Django: Migrate.

image

django-migrate

๐Ÿ‘ฉโ€๐Ÿ’ป Open the developer site

Run the project inside the container: Press Cmd+Shift+D (macOS) or Ctrl+Shift+D (Windows/Linux), choose Django+React in the RUN AND DEBUG dropdown.

image

Review the list of forwarded ports from the container to your local host:

forwarded-ports

Open your web browser and go to localhost:8000 to view the running application.

๐Ÿ‘ฉโ€๐Ÿญ Create a super user

django-superuser1

๐Ÿ’ฝ Restoring layer schema for map

The full dump file for layer schema is ~5.3GB, meanwhile compact dump file is only 24MB.

Download Full Dump File for Layer.

Download Compact Dump File for Layer.

Preview for compact dump file: sanbi_maps_compact

Copy the dump file to db container. Then run pg_restore from inside db container to restore the dump file.

docker cp sanbi_layer_db_compact.dump deployment-db-1:/home/sanbi_layer_db_compact.dump
docker exec -it deployment-db-1 /bin/bash
cd /home
pg_restore -h 127.0.0.1 -U docker -d django -n layer sanbi_layer_db_compact.dump

๐Ÿ’ป Resources

Database ERD

Figma Board

sawps's People

Contributors

tinashechiraya avatar mohab25 avatar ketankartoza avatar fanevanjanahary avatar danangmassandy avatar dimasciput avatar zamuzakki avatar lunaasefaw avatar timlinux avatar dependabot[bot] avatar jeremy-prior avatar osundwajeff avatar amyburness avatar lgkgh avatar devketanpro avatar meomancer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.