-
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 bashto get a shell inside thewebcontainer. Then, inside that shell:-
python manage.py migrateto set up the database. -
python manage.py loaddata languages_data.json.gzto load data from Django-Languages-Plus -
python manage.py createsuperuserto 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.ymlis 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_moduleswill 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 upCobweb should be running at http://127.0.0.1:8000, and the Django admin site at http://127.0.0.1:8000/admin