This repo re-creates xkcd.com's main page as a Django app.
Clone this repo and move into it:
$ git clone https://github.com/andy-esch/django-xkcd-clone.git
$ cd django-xkcd-clone
Create a virtual environment with Python 3, install the requirements in a virtual environment, and activate the shell. Here I use pipenv
.
$ pipenv --three
$ pipenv -r requirements.txt
$ pipenv shell
Copy the secret.json.sample
to secret.json
and give fill it in with a key:
$ cp xkcdclone/xkcdclone/secret.json.sample xkcdclone/xkcdclone/secret.json
Finally, start up the server:
$ python xkcdclone/manage.py runserver
Open http://127.0.0.1:8000
in your browser.