Тёмный

Go api with docker, postgres and chi router [UPDATED] 

Arturo Filio Villa
Подписаться 2,4 тыс.
Просмотров 11 тыс.
50% 1

Опубликовано:

 

12 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@FilipeCruz-rj8bb
@FilipeCruz-rj8bb Год назад
For me, nice to getting started. Thanks Arturo!
@backendfyi
@backendfyi 3 месяца назад
I love your teaching style. please do more of this with Chi. Can you also build complex APIs as well?
@arturfil
@arturfil 3 месяца назад
Yes I will. I'll do an HTMX soon I don't love HTMX but I know people are curious about it so I'll release something. Also neovim config video coming soon.
@backendfyi
@backendfyi 3 месяца назад
@@arturfil thank you so much. i really appreciate this.
@prosenjitjoy
@prosenjitjoy Год назад
Thank you very much. I learned a lot by coding along.
@zend112
@zend112 Год назад
Great tutorial, really appreciate configuring the Makefile as well as it's super helpful. Would you be so kind as to add the .env file with dummy values, just as an example? Thanks!
@arturfil
@arturfil Год назад
Sure I can try that
@aboronilov
@aboronilov 7 месяцев назад
Cool tutorial bro. I noticed you have a microservice repo on your github. Are you going to make a video on that topic?
@arturfil
@arturfil 7 месяцев назад
Not now, but in the future for sure
@fatcamdog8528
@fatcamdog8528 11 месяцев назад
Very clear tutorial, thanks
@mr.daniish
@mr.daniish 4 месяца назад
Arturo is on 🔥
@agreen254
@agreen254 Год назад
for anyone using WSL you need to login to the database from a WSL shell, I wasnt able to access it from the regular windows terminal
@arturfil
@arturfil Год назад
Yes, for wsl users, you need to use docker via wsl
@leandrolomonaco
@leandrolomonaco 7 месяцев назад
Hola Arturo, gracias por el tutorial! Una pregunta... por qué puede ser que en la parte que armas el response no le gusta el omit response? Me da el error unknown JSON option "omitresponse" Busqué en diferentes lugares incluso en la documentación de go y solo existe omitempy. Gracias!!!
@arturfil
@arturfil 7 месяцев назад
Si, capaz y fue un error mio pero es verdad, es omitempty
@leandrolomonaco
@leandrolomonaco 7 месяцев назад
@@arturfil Gracias!!!
@adrianolmedo
@adrianolmedo Год назад
Para migraciones simples paso por pipeline el cat a un archivo sql al container: cat 2023010203_CREATE_TABLES.sql | docker exec -i psql -U -d
@arturfil
@arturfil 11 месяцев назад
Se implementara! Asi no mas cli tools the otros lenguajes 😃
@piyushbhatnagar4735
@piyushbhatnagar4735 4 месяца назад
Sir kindly make complete backend on E-commerce using docker and Kubernetes.
@arturfil
@arturfil 4 месяца назад
You mean an app from scratch for the backend? I will plan to do it in a bit. Right now I have a lot of projects going on unfortunately :/
@Mustafa-099
@Mustafa-099 Год назад
Hey Arturo Can you please tell me what is this project really about?
@arturfil
@arturfil Год назад
It's a crud project, you can make it what you want but essentially it's a dashboard where I keep track of the coffees I buy, how fine do I grind the beans in order to prepare the coffee and what not. I'm missing the front-end part for this.
@kevs3913
@kevs3913 11 месяцев назад
for some reason the sql.Ping() function guive me an error parsing the number 5 of the connect_timeout=5 value from de .env file, its say something of failed becouse it cant be able to parse the "5/" character, its weird becouse i have almost the same as you
@arturfil
@arturfil 11 месяцев назад
I was looking at the video to see where you could've potentially written a bug, I'm not sure but I added the timestamp for the DSN. Make sure you have the same DSN string format as I have
@kevs3913
@kevs3913 11 месяцев назад
@@arturfil well the problem was that the dsn := os.Getenv("DSN") was returning the whole dsn env surrounded by doblequotes, so i had to remove them with this line in the db.go file: dsn = strings.Trim(dsn, "\""), so that let the dsn string without the doblequotes and worked at the moment of pinging the DB
@kevs3913
@kevs3913 11 месяцев назад
@@arturfil its kind of strange that this happens to me and not to you, but im glad that i could workarround this part. Thanks for the fast reply and for making this wholesome content
@kevs3913
@kevs3913 11 месяцев назад
this was the original error: strconv.ParseInt: parsing "5\"": invalid syntax
@user-cn7gc8gi1o
@user-cn7gc8gi1o Год назад
Is there a video on Vim For golang? It would be nice to see your build
@arturfil
@arturfil Год назад
Yeah, I can make a specific video, it generally is the same but you have to add an lsp, and tree sitter for golang. After that for DAPs, what you need to do is install something different for golang. I can make a video about it and o in depth :)
@user-cn7gc8gi1o
@user-cn7gc8gi1o Год назад
Thanks for your answer, it would be very cool if you made this video :0@@arturfil
@eduardosalles9212
@eduardosalles9212 Год назад
@@arturfil gopls?
@arturfil
@arturfil 7 месяцев назад
@@eduardosalles9212 sorry for the late reply lol, but yes that lsp definitely needs to be installed
@asmondof
@asmondof 3 месяца назад
Hello Arturo, is this a RESTful api?
@arturfil
@arturfil 3 месяца назад
Hello, yes this is a RESTful api
@IleniaQuintero
@IleniaQuintero 5 месяцев назад
Hello, I was looking at your video channel. We may be helping a company that uses secure images to increase supply chain security and help cloud native development. Would you be willing to help try their software, make a video, and help show devs how to use their tools? This is not an offer, but just to start a conversation about your willingness to take on sponsorship. Please provide me with your email if you are interested. You'd have a chance to look at their technology and decide if it's the type of software that you'd be interested in covering in your channel.
Далее
Build a CRUD REST API with Rust Axum | Tutorial
19:41
This Is The BEST Way To Structure Your GO Projects
11:08
Cursor Is Beating VS Code (...by forking it)
18:00
Просмотров 95 тыс.
Build a Rest API with GoLang
34:14
Просмотров 118 тыс.
How I Structure New Projects In Golang
21:32
Просмотров 58 тыс.