Skip to content

Development Environment

Andrew Benedict Wallace edited this page Dec 19, 2018 · 10 revisions

Setting up a development environment

Installation with Docker Compose

Untested, but try:

  1. Install Docker and Docker Compose

  2. Clone the repository:

    git clone https://github.com/CobwebOrg/cobweb-django
    cd cobweb-django
  3. Set up the database:

    First run docker-compose run web bash to get a shell inside the web container. Then, inside that shell:

    1. python manage.py migrate to set up the database.
    2. python manage.py loaddata languages_data.json.gz to load data from Django-Languages-Plus
    3. python manage.py createsuperuser to create an admin account.
  4. Install node packages (only needed if you're editing scss / javascript):

    docker-compose run node npm install
  5. docker-compose up

Clone this wiki locally