-
Notifications
You must be signed in to change notification settings - Fork 0
Development Environment
Andrew Benedict Wallace edited this page Dec 19, 2018
·
10 revisions
Untested, but try:
-
Install Docker and Docker Compose
-
Clone the repository:
git clone https://github.com/CobwebOrg/cobweb-django cd cobweb-django
-
Set up the database:
First run
docker-compose run web bash
to get a shell inside theweb
container. Then, inside that shell:-
python manage.py migrate
to set up the database. -
python manage.py loaddata languages_data.json.gz
to load data from Django-Languages-Plus -
python manage.py createsuperuser
to create an admin account.
-
-
Install node packages (only needed if you're editing scss / javascript):
docker-compose run node npm install
Be aware that
docker-compose.yml
is set up to mount a separate docker volume on top ofnode_modules
, since it gets quite large and docker's bind mounts are slow. Thus,node_modules
will look empty from your host machine. This is normal, and you should be able to see your node modules by runningdocker-compose run node ls node_modules
. -
docker-compose up
Cobweb should be running at http://127.0.0.1:8000, and the Django admin site at http://127.0.0.1:8000/admin