/qts3-wmb-test

Primary LanguagePythonMIT LicenseMIT

quickstatements3

Repository for the development of a new version of QuickStatements

Local development HOW TO

Required tools:

  • Docker
  • Make

To build the development container

> make build

To run a shell inside the container

> make shell

Make sure that you have an env file inside the local etc/ dir. This file contains all the ENVIRONMENT VARIABLES used by the system and must never be added to your git repo.

To generate a good secret key you can run with python 3.6+

python -c "import secrets; print(secrets.token_urlsafe())"

If you are running this container for the first time, you have to initialize the database and create a superuser for the Django admin.

Run these after make build and make shell:

> cd src
> python manage.py migrate
> python manage.py createsuperuser

If you're having troubles with file/folder/database permissions, run sudo chmod 777 src/ to allow any user to read, write and enter the folder, and then try again.

Now that everything is set up, we can start Quickstatements. We have 2 ways of doing that:

  • from inside the container, running
>./cmd_run.sh
  • Or, from our Makefile, running
> make run

Now Quickstatements is available at http://localhost:8765/