Szczepaniak-M / FakeCheck

HackCrisis2020

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FakeCheck

How to install

  1. Download repo,
  2. Initialize virtual environment in it: python -m venv env,
  3. Run that venv: source env/bin/activate,
  4. Install dependencies: pip install -r FakeCheck/requirements.txt,
  5. Install frontend dependencies: npm install
  6. Compile frontend assets: npm run dev,
  7. (optional) Change database settings in settings.py if you want to use different (non-sqlite) db backend,
  8. Migrate database: python manage.py migrate,
  9. Load seed database python manage.py loaddata db.json
  10. To run dev server: python manage.py runserver

with Docker

  1. Download repo
  2. Run docker-compose up in it
  3. 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.

Tips for devs

Dumping pip installations into the file

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

About

HackCrisis2020

License:MIT License


Languages

Language:HTML 51.1%Language:Python 43.2%Language:JavaScript 3.0%Language:CSS 2.3%Language:Dockerfile 0.3%