You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 36m 59s logged

HIIIIII, first dev log!

so i started working on the docker setup first so i can spin up a postgres container, so i wrote a docker compose file, also had some problems cuz postgres-18 wouldnt take the /var/lib/bla/bla path, that was a small issue tho fixed that quick.

then i started working on the connection part so i used psycopg on python backend to connect to my pgsql container

after that i had to make tables, which took the most time lmao cuz it was hard to decide how should i do it, first i thought i should use SQLAlchemy and the whole database migration setup but that felt too much for now, so i went the usual way using psycopg and decided to create tables using CREATE TABLE IF NOT EXISTS, even with that my dumb ahh spent time making sure if i wrote the init_db() function the best way lmao, but at
the end it worked nice and created the table

after that i just setup fastapi and created / endpoint which just returns “hello fellas :3”

0
16

Comments 0

No comments yet. Be the first!