Please sign in to access this page

//public:canvas

//public:canvas Used AI

9 devlogs
27h 55m

This project will result in a website that offers ppl to draw together on a public canvas (like r/place).

Tech used:
- Angular with Tailwind css
- Django
- PostgreSQL

Disclaimer: This my first Django project. I also have never programmed an API. I only know Python and how an API basically works , thus my progress may seem a bit slow, but learning all these new concepts takes time.

Timeline

Added websocket functionality. Now the frontend sends messages live to the backend, while the backend sends out updates to all users.

Update attachment

Canvas element added. API is now initially called to retrieve current Canvas state. Site also waits for API call to finish, before that a text is shown. Next step is to implement the websocket feature to also send the inputs to the db. I am also not currently able to draw lines, the drawn pixels are apart from each other.

Update attachment

worked some time on the ui

Update attachment

tinkered with the design of the site a bit. Also switched burger icon

Update attachment

looked for some fonts, icons and tried to import the downloaded font into tailwind. couldnt figure it out.

Update attachment

fucking hate browser caching. Tried solving an issue with nginx that was already fixed probably half an hour ago. switched to angular btw.

Update attachment

finished websocket support. Created svelte project and nginx config. Got it to forward me to the api trough nginx. Learned much about Svelte (first time use)

Update attachment

kind of started the websocket support. But I learned what WSGI and ASGI means. For the websocket support, I implemented a consumer on the server side and I installed the channels app for Django. I also finally found out what Redis does in this whole system and set a password for it.

Update attachment

Learned how to create Django Apps, how Models work and what they are. I also created some test apps and models, but I deleted them in the end. Then I created a model for the canvas table and the first API endpoint that returns the current canvas state.

Update attachment