Giter VIP home page Giter VIP logo

nmis's Introduction

NMIS Project v0.7

  1. Checkout this branch

    git checkout feature/dj13

2. Install MySQL. Right now we put MySQL-python in the requirements.pip file. This makes deployment easier, but means you have to have MySQL installed on your machine to install the requirements.

sudo apt-get install mysql-server mysql-client libmysqlclient-dev

3. Change directory into the folder where you want to make your virtual environment, and make a new virtualenv with the following command

virtualenv --no-site-packages [name-of-new-virtualenv]

Activate the virtual environment

source [path-to-virtualev-dir]/bin/activate

Change directory into the folder containing this README.rst and install the requirements

pip install -r requirements.pip

  1. Install dropbox and make a symbolic link to the cleaned csv folder*

    ln -s ~/Dropbox/NMIS-Nigeria/NMISData/final_cleaned_data/csv/ data

  2. Run a series of management commands

    # sync, migrate db and add default users python manage.py bootstrap

    # load sectors python manage.py load_sectors

    # load districts python manage.py load_districts

    # go through the data repo and mark lgas that have data available python manage.py mark_available_lgas

    # load key renames python manage.py load_key_renames

    # load in variables python manage.py reload_variables

    # load in lga data for all lgas python manage.py load_lgas # nb: individual lgas can be loaded as well, eg: # python manage.py load_lgas 366

    # load table definitions python manage.py load_table_defs

  • Alternatively, if you have the keys set up you can pull from the nmis_data private repo:

    git clone [email protected]:repositories/nmis_data.git data

nmis's People

Contributors

dorey avatar amarder avatar mejymejy avatar mberg avatar prabhasp avatar iwillig avatar modilabs-starscream avatar

Watchers

James Cloos 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.