- Install docker and docker-compose
- Build docker image and start DB container
docker-compose build docker-compose up -d db
- Run db migrate on django container
docker-compose run --rm web python manage.py migrate docker-compose up -d web
- Open http://localhost:8000 on browser
-
install python
brew install python
-
install MySQL database (if you use MySQL)
brew install mysql
-
install other system dependencies (wand depends on imagemagick@6)
brew install freetype brew install imagemagick@6
in case you have imagemagick@7 installedbrew unlink imagemagick brew link imagemagick@6 --force
-
Install django requirements
pip install -r requirements.txt
-
Start mysql database (if you use MySQL) change the MySQL connection settings in the config file:
gov_track_hk_web/gov_track_hk_web/settings.py
-
Start MySQL Server
mysql.server start
-
Run db migrations
python manage.py migrate
-
Start django app server
python manage.py runserver