MIT License
Guess a point and click adventure game every day
License: MIT
Moved to settings.
Assuming you are using Docker and docker-compose, you only need to build the containers using the local configuration for development.
To build the containers, run:
$ docker-compose -f local.yml build
Next, you can run the containers using:
$ docker-compose -f local.yml up -d
Finally, you need to initialize some date by running the following commands:
These commands are explained next.
To initialize the database, run:
$ python manage.py migrate
.. note::
If you are using Docker you must run the command above within the django container.:
$ docker-compose -f local.yml run django python manage.py migrate
To create a normal user account, just go to Sign Up and fill out the form. Once you submit it, you'll see a " Verify Your E-mail Address" page. Go to your console to see a simulated email verification message. Copy the link into your browser. Now the user's email should be verified and ready to go.
To create a superuser account, use this command:
$ python manage.py createsuperuser
.. note::
If you are using Docker you must run the command above within the django container.:
$ docker-compose -f local.yml run django python manage.py createsuperuser
To import the games database you need the gamesdb.json result of running the scrapper.
To import the games database, use this command:
$ python manage.py importdb gamesdb.json
.. note::
If you are using Docker you must run the command above within the django container.:
$ docker-compose -f local.yml run django python manage.py import gamesdb.json
Finally you need to filter the database, use this command:
$ python manage.py filtergames
.. note::
If you are using Docker you must run the command above within the django container.:
$ docker-compose -f local.yml run django python manage.py filtergames
Running type checks with mypy:
$ mypy point_and_clickle
To run the tests, check your test coverage, and generate an HTML coverage report:
$ coverage run -m pytest
$ coverage html
$ open htmlcov/index.html
$ pytest
Moved to Live reloading and SASS compilation .
Sentry is an error logging aggregator service. You can sign up for a free account at https://sentry.io/signup/?code=cookiecutter or download and host it yourself. The system is set up with reasonable defaults, including 404 logging and integration with the WSGI application.
You must set the DSN url in production.
The following details how to deploy this application.
See detailed cookiecutter-django Docker documentation .