Code Monkey home page Code Monkey logo

content-curation's Introduction

Kolibri

Django app for the Content Curation project.

Getting the codebase and configuring your git path

  • Fork the repo to your own remote github repository first

  • Then, clone the repository into your local files

    git clone https://github.com/fle-internal/content-curation.git

  • Type in git remote -v to check what origin and upstream are tracking. Make sure origin refers to your remote repository, yourusername/content-curation.git and upstream refers to fle-internal/content-curation.git. If not, use these commands:

    Tracking upstream:

      `git remote add upstream [email protected]:fle-internal/content-curation.git`
      `git remote set-url upstream [email protected]:fle-internal/content-curation.git`
    

    Tracking origin:

      `git remote set-url origin [email protected]:yourusername/content-curation.git`
    

Setting up your environment

  • Download Python 2.7.10 if you don't have it already.

  • Install pip if you don't have it already.

  • Set up your virtual environment

    pip install virtualenv Installs your virtual environment

    virtualenv yourfoldername Creates a folder for your virtual environment

    source yourfoldername/scripts/activate Activates your virtual environment

    IMPORTANT: Make sure you have done the above steps and are inside your virtual environment before continuing on.

    pip install -r requirements.txt Installs python dependencies within your virtual environment

  • install node if you don't have it already. Install the dependencies listed in packages.json: npm install

  • Set up the database

    cd contentcuration

    python manage.py makemigrations

    python manage.py migrate

  • Run your server and start developing! Make sure you're in your virtual environment each time before you run the server.

    python manage.py runserver

    Visit the localhost link that is presented on your console.

Adding files, committing, and pushing to your local repo:

When you're ready to submit your work, make sure you are not in your virtual environment. Type in deactivate to exit your virtual environment.

Then:

`git add .`
`git commit -m "message that says what your code accomplished"`
`git push origin yourbranch`

And visit the pull request page to get your code in!

content-curation's People

Watchers

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