- Download repo,
- Initialize virtual environment in it:
python -m venv env
, - Run that venv:
source env/bin/activate
, - Install dependencies:
pip install -r FakeCheck/requirements.txt
, - Install frontend dependencies:
npm install
- Compile frontend assets:
npm run dev
, - (optional) Change database settings in settings.py if you want to use different (non-sqlite) db backend,
- Migrate database:
python manage.py migrate
, - Load seed database
python manage.py loaddata db.json
- To run dev server:
python manage.py runserver
- Download repo
- Run
docker-compose up
in it - Ready. Thing is accessible at localhost:8000. Stopping and starting containers again results in making whole new migrations and reseting database (sqlite) content. Watching scss and js assets for changes is also active.
If you installed new pip dependency you need to allow others to know about it. To do so it is best to save all requirements
in one file, which in this case in named requirements.txt
. You can do this by typing following command:
pip freeze > requirements.txt