This is a rest API service created in Golang. This project allows to crearte a user, login and create posts as user Authenticated
Main operations
- GET
- POST
- PUT
- PATCH
- DELETE
- Web socket gateway
It's fully functional persisting data on postgres database
- Go | Golang
- Gorilla/mux
- Gorilla/websockets
- golang-jwt/jwt
- x/crypto
- joho/godotenv, rs/cors and more
clone this repository, you need git installed in your machine ¡ how to install link
In your local machine open some cmd, bash etc command line tool. Located where you will have your local repository. You can navigate with cd somepath/mydirectory etc.
git glone https://github.com/raulcv/golang-api-websockets.git
Once cloned with git, enter to your local repository
cd golang-api-websockets
Replace in .env.public file with your own credentials
Finally run the Golang API on dev mode 🤪
go run main.go
Open http://localhost:3000 to view it in the browser.
Visit http://localhost:3000/posts?page=1 to see all created posts.
Check out the Golang documentation.
With ❤️ by raulcv