This is part 1 of the realtime chat application built with Go, Next, and Typescript. In the following part, we will set up the websocket endpoint and test our connection.
In this part, we will:
1. Pull the postgres image from the Docker hub and create the go-chat database
2. Set up our database to connect to the postgres on the specified port, and add a db migration file with golang-migrate
3. Start building the architecture with the handler, service, and repository layers to create the /signup, /login, and /logout endpoints
@TECHSCHOOLGURU does an awesome job explaining at how you can use the refresh token to manage user session here: • [Backend #37] How to m...
Github repo: github.com/dhi...
sql library: pkg.go.dev/dat...
lib/pq: github.com/lib/pq
golang-migrate: github.com/gol...
golang-jwt: github.com/gol...
bcrypt: pkg.go.dev/gol...
gin: github.com/gin...
Негізгі бет Go Realtime Chat Part 1: authentication + db connection setup (clean architecture, cookie-based JWT)
Пікірлер: 63