This is the source code for my blog and website, chrisdoescoding.com.
- Install and make sure postgres is running
$ brew install postgres
$ brew services start postgresql
- Clone repository and install dependencies
$ git clone git@github.com:cs-cordero/chrisdoescoding.com.git
$ cd chrisdoescoding.com
# activate your virtual environment
$ poetry install
$ export DJANGO_SETTINGS_MODULE=config.settings.local
- Run tests
$ ./test.sh
- Run server
$ python chrisdoescoding/manage.py migrate
$ python chrisdoescoding/manage.py bootstrap # Do NOT do this in Production
$ python chrisdoescoding/manage.py runserver
- Login as Admin
In dev-mode, if you ran bootstrap
above, you can access the localhost admin
user using the credentials superuser
and test
.
If your postgresql
instance isn't working, you may want to try deleting the
postmaster.pid and then restarting postgresql.
$ rm /usr/local/var/postgres/postmaster.pid
$ brew services restart postgresql
Scripts require that Docker
is installed as well as gsed
(the GNU version
of sed
). On Linux you'll already have this. On Mac, it's installable with
brew install gsed
.