~/talk

Creating a containerized Django + React + PostgreSQL...

Talkat DjangoCon US 2019 · 2019-09-22..09-27· [django, react, devops-and-delivery]
slides:none on file

Builds a working Django + React + PostgreSQL dev setup using Docker and VS Code Remote Containers, attaches to or creates devcontainer.json and docker-compose, forwards ports and runs Django with Postgres and DRF endpoints, scaffolds a React app with create-react-app frontend and a proxy to the API, demonstrates hot reload and tests, then produces a production image via a multi-stage Docker build to Nginx + Gunicorn and uploads static assets to a CDN so the whole stack actually runs end to end.

AI-written summary · about

  1. 0:00Start
  2. 0:22set up a development environment
  3. 3:51create a new containerized dev box just from scratch
  4. 4:15base it off of the standard python image
  5. 6:03debug this running inside of the container
  6. 8:51create or switch between development environments
  7. 9:25attaching to an existing container
  8. 10:12install the remote containers extension
  9. 10:47attach visual studio code
  10. 11:53install the extension
  11. 14:10create a new development container
  12. 15:05pick from a set of predefined containers
  13. 17:52include all the python dependencies
  14. 18:25create a new site in this current folder
  15. 19:47attach a shell to this postgres container
  16. 20:11use the postgres ql engine
  17. 21:24set up the debugger
  18. 21:40create a debug configuration
  19. 22:54switch to a different container
  20. 29:39build the react front-end
  21. 30:11build a new front-end folder
  22. 38:00add this front-end folder to my static files
  23. 41:28put passwords and connection strings into a file
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.