Skip to content

howToCodeWell/howtocodewell.fm

Repository files navigation

How To Code Well Podcast

Requirements

  • Docker
  • Docker Compose
  • Make

Install

  1. Create a .env.local in the root directory with the following variables
PODCAST_FEED_URL='https://anchor.fm/s/2d0cded8/podcast/rss'
DATABASE_URL="sqlite:///%kernel.project_dir%/var/app.db"
EMAIL_TO="[email protected]"
SITE_TITLE="Your Site Title"
# Change to your mailer config
MAILER_DSN=null://null
# This can be local | staging | production
SSL_STAGE=local 
SSL_STORE=./infra/docker/dev/ssl_certs
# Change howtocodewell-local.fm to what ever domain you have set in your host file
DOMAINS="howtocodewell-local.fm -> http://webserver"
FORCE_RENEW='false'
  1. Install all the things
$ make install
  1. Test the code
$ make test

Run

  1. Update the host file. On mac run the following
 sudo nano /etc/hosts

Add the following entry.

127.0.0.1 howtocodewell-local.fm
  1. Save the host file. On mac run the following
$ sudo killall -HUP mDNSResponder
  1. Access the local site https://howtocodewell-local.fm Or use whatever custom domain you have given it

Useful Commands

Build

$ make build

Install and run

$ make install

Stop the containers

$ make stop

Remove the containers and network

$ make down

Uninstall (Removes the images, network, volumes, containers, etc...)

$ make uninstall

Enter the webserver container in a Bash shell

$ make enter

Runs the tests

$ make test

Imports the RSS feed

$ make import-feed