Go PostgreSQL REST API (gorilla/mux, gorm ORM) Golang



Go PostgreSQL REST API (gorilla/mux, gorm ORM) Golang

Go PostgreSQL REST API (gorilla/mux, gorm ORM) Golang

En este ejemplo aprenderemos a crear un proyecto Backend usando Go y PostreSQL, a traves de un ORM de go llamado gorm y el paquete de Go llamado Gorilla/mux. Crearemos una REST API que nos permite hacer las operaciones típicas de Crear, Listar y eliminar datos. Ademas usaremos Docker, como forma de ejecutar un contenedor de PostgreSQL.

Código del Tutorial ➞ https://github.com/FaztWeb/go-gorm-restapi

Índice del Contenido:

00:00 Introducción
01:08 Configuración del Proyecto
11:27 Conexion a PostgreSQL (usando Docker)
24:06 Creacion de Tablas
31:39 Post y GET /users
42:45 GET y Delete /users
56:01 Tasks Routes

🎥 Videos Recomendados de Go:

Instalación de Go ➜https://youtu.be/lQVhwSJpkqg
Docker y Postgres ➜ https://youtu.be/hVrKX2RtigQ
Go Fiber ➜ https://youtu.be/8ES_ecfbZsk
Thunder Client ➜ https://youtu.be/HZx5X3s_Jl4
Curso de Git ➜ https://youtu.be/HiXLkL42tMU
Curso de Docker ➜ https://youtu.be/NVvZNmfqg6M

👨‍💻 ¿Qué servicios y productos utilizo?
Ledger (Hardware Wallet) ➞ https://bit.ly/3ijsVNW
SiteGround ➞ https://bit.ly/31u9ZEk
DigitalOcean ➞ https://m.do.co/c/8ef261d77de5
Expo ➞ https://bit.ly/2WpYKtx
Cloudinary ➞ https://bit.ly/3ohNlJ7
Namecheap ➞ namecheap.pxf.io/ErDe9

Más información en ➞ https://fazt.dev/docker

Este es el comando usado para poder ejecutar PostgreSQL con Docker:
docker run –name some-postgres -e POSTGRES_USER=fazt -e POSTGRES_PASSWORD=mysecretpassword -p 5432:5432 -d postgres

https://fazt.dev/contenido/docker-postgresql

#golang #postgresql #docker

Comments are closed.