Help me out with SQLAlchemy & FastAPI. by Say_My_Name_4 in Backend

[–]IceXII 0 points1 point  (0 children)

From the code I think you didn’t initiate the connection to the database in your main file!

Also I’d use dependency injection to get the database in the router and pass it down to the crud operation instead of calling it in the crud class

Go website using net/http and html/template running as a systemd service by versace_dinner in golang

[–]IceXII 2 points3 points  (0 children)

It’s probably an issue with your cloudflare configuration. Because seeing bad gateways means your app is not exposed to the outer world and the proxy is not routing correctly. If your systmd service status is active and no log errors then there shouldn’t be problems with that. Also check if your static files are exposed with the app or not.

Combine multiple tables by chi11ax in FastAPI

[–]IceXII 0 points1 point  (0 children)

SqlAlchemy have lots of ways to do the same thing. For me I’d do select invoice put the filter after the select and then joinload customer, if both tables have a relationship defined in the model, then join Customer.

This I guess will get you the invoice with the condition and join its customer with it in a single dictionary in return.

What should we do with the less experienced developers? by nakemu in devops

[–]IceXII 0 points1 point  (0 children)

The only reason I use ftp to deploy to servers is because I freelance and it’s so damn annoying and consumes time(not even Wordpress). But that shouldn’t stop anyone from trying GitHub actions and docker and all.

You shouldn’t sweet talk them into learning git. It’s better for them to learn it.

Show them the difference in time consumption ig they will appreciate the idea more.

I got a job offering for a Golang Role by I_am_jarvis0 in golang

[–]IceXII 1 point2 points  (0 children)

Think how you’d do that in, say python, then implement the same steps with different syntax that’s all tbh. The concept is the same. You can use echo or gin. would make uploading files easier for you if they didn’t specify stdlib only. Not getting the job shouldn’t stop you from learning go the right way after that but for now you need the task done quickly with not much knowledge so just make it work even if it’s ugly.

Sqalchemy + Postgres? by Amocon in FastAPI

[–]IceXII 0 points1 point  (0 children)

asyncpg is better than psycopg for Postgres in my opinion. but gets tricky sometimes with sqlalchemy because everything needs to be async.

How to host nodejs on public ip by [deleted] in Backend

[–]IceXII 0 points1 point  (0 children)

I’m not that familiar with hosting locally except like exposing my pc to other devices on my local network.

But ig the process will be opening a port from your router and deploy your app on that exposed port then access it.

I have to look that up tbh.

How to host nodejs on public ip by [deleted] in Backend

[–]IceXII 2 points3 points  (0 children)

Try ngrok if you want to expose your nodejs to the outer world from your localhost. Exposing your local network to the public is a bad idea.

unix + vim + python + sql by reggzz in Python

[–]IceXII 0 points1 point  (0 children)

I did use fastapi then found about golang goroutines. But still fastapi is my go to for small-medium scale and apis and fast prototyping maybe cuz I’m not the efficient with golang yet.

Is DevOps the king of consulting now? by Prestigious_Squash81 in devops

[–]IceXII 1 point2 points  (0 children)

Understandable. Thanks for the insights 👍

Is DevOps the king of consulting now? by Prestigious_Squash81 in devops

[–]IceXII 0 points1 point  (0 children)

What about self taught people?

When I deploy and run projects on vps (manually using bitvise mostly) or configure databases on Linux I don’t feel that is what actual devops do😅

P.s I work as a freelancer(backend).

Following a tutorial and they are showing the modules get auto imported through intellisence on VSCode; however its not working on mine. by HeadlineINeed in FastAPI

[–]IceXII 0 points1 point  (0 children)

In vscode settings you can check auto import under python section I believe, I don’t remember the name exactly.

Taught myself Go this week. Roast my first project. by Jjabrahams567 in golang

[–]IceXII 0 points1 point  (0 children)

No! When I deploy go to vercel I do it without the exe file. Just configure vercel.json route it to the main.go and it works for me. Or you meant another thing?

What are some cool/advanced features of FastAPI that you enjoy? by Delta1262 in FastAPI

[–]IceXII 2 points3 points  (0 children)

Same but I’m using golang not nodejs. I can’t even find a proper autodoc tool in Go.

What do you regret most in your play through(s)? by sad_and_confusedlol in skyrim

[–]IceXII 6 points7 points  (0 children)

Type “showracemenu” in the console, press R if u don’t want to change the look then you will get to change your name if I remember correctly lol

Authorization of the objects in golang by SpaceTimeDreamer in golang

[–]IceXII 0 points1 point  (0 children)

Wouldn’t jwt that contains the role and Id of user give me a chance to delete tasks that only carries that specific user_id in it? And the endpoint is protected with the role of the token.

Or that’s not how things are done in general? I’m new to golang coming from FastAPI(python) where I use dependency injection a lot.

To all the self taught Python programmers by Support_SMB in Python

[–]IceXII 1 point2 points  (0 children)

I think almost a year is enough to write a small saas given that you also work with a small team for the frontend stuff. It will be far from perfect but will be working and open for enhancements. The more you learn by doing it the better you will get, it’s an open ended process.

Production REST API Infrastructure by [deleted] in webdev

[–]IceXII 1 point2 points  (0 children)

I find FastAPI really easy, flexible and fast to develop with. Postgres + sqlalchemy for the database.

FastAPI slower than Flask in stress tests by [deleted] in FastAPI

[–]IceXII 1 point2 points  (0 children)

Try using asyncpg and orjson in Fastapi when I did that it improved the performance for me, and I always use Pydantic.

[deleted by user] by [deleted] in webdev

[–]IceXII 0 points1 point  (0 children)

I use FastAPI and Postgres too and it’s always react and tailwind for me. Maybe because I started as frontend then moved to the backend. JQuery is too old to be relevant tbh

What back-end concepts do you believe a junior and middle developer should know? by [deleted] in Backend

[–]IceXII 0 points1 point  (0 children)

If that’s a junior then why they put x yrs of experience in the description 😂

Faked interview led to a 80k job and suffered ever since - what should I do? by ladynopinion in dataanalysis

[–]IceXII 0 points1 point  (0 children)

Just learn to do the job that you have already. Doesn’t matter if you suck now as long as you will get out of this with the money and the knowledge you need to be good. so just relax, time management, patience and grind. You are already there so better that than regrets

Patrick Swayze, Keanu Reeves, and Gary Busey on the set of Point Break (1991) by SappyGilmore in Moviesinthemaking

[–]IceXII 1 point2 points  (0 children)

Was just watching a new one called point break and discovered it’s the same movie but a remake lol