Giter VIP home page Giter VIP logo

lernanta's Introduction

Learnanta

Lernanta is the new platform for P2PU. We are building on the codebase from Batucada, a rewrite of drumbeat.org by Mozilla.

Get Involved

Interested in getting involved in Lernanta code development? Check out the development wiki [0] for more info! For a broader view on the development and tech team at P2PU, check out the P2PU Development and Tech team [1] page on the P2PU wiki [2] .

[0] https://github.com/p2pu/lernanta/wiki [1] http://wiki.p2pu.org/w/page/31978748/Development-and-tech-team [2] http://wiki.p2pu.org

Installation

You need a few prerequisites :

sudo apt-get install python-setuptools python-dev build-essential

To install Lernanta, you must clone the repository: :

git clone git://github.com/p2pu/lernanta.git

To get started, you'll need to make sure that virtualenv and pip are installed. :

sudo easy_install virtualenv
sudo easy_install pip

You'll also need to have mysql installed (mysql-client, mysql-server, libmysqlclient-dev).

I recommend using virtualenvwrapper to manage your virtual environments. Follow the installation instructions. Once installed, create your virtual environment for lernanta and install the dependencies :

cd lernanta
mkvirtualenv lernanta 
workon lernanta
pip install -r requirements/compiled.txt
pip install -r requirements/prod.txt
pip install -r requirements/dev.txt

If you are doing an update, you might find it helps to delete pyc files: :

find . -name "*.pyc" | xargs rm

You should create a settings_local.py. Most people will be able to get away with the template provided. :

cp settings_local.dist.py settings_local.py

If the mysql database doesn't exist yet, create it. :

mysqladmin -u <user> -p create <database name>

Next, sync the database and run migrations. :

python manage.py syncdb --noinput --all

Finally, start the development server to take it for a spin. :

python manage.py runserver 

To run the test framework. :

python manage.py test

To recreate the test database before running the tests. :

FORCE_DB=True python manage.py test

After updating a database model you will have to make a migration for the change, then apply it. :

python manage.py schemamigration <appname> --auto
python manage.py migrate <appname>

lernanta's People

Contributors

paulosman avatar theinterned avatar jessykate avatar houshuang avatar zuzelvp avatar cillian avatar johndbritton avatar sorratheorc avatar

Stargazers

Emmanuel Baako avatar

Watchers

Emmanuel Baako avatar 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.