Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 1.85 KB

README.md

File metadata and controls

63 lines (47 loc) · 1.85 KB

Golang API and WebSockets

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

What is inside?

🛠  This project uses the following technologies:

  • Go | Golang
  • Gorilla/mux
  • Gorilla/websockets
  • golang-jwt/jwt
  • x/crypto
  • joho/godotenv, rs/cors and more

Getting Started

Run this project locally

clone this repository, you need git installed in your machine ¡ how to install link GIT

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.

Learn More about go

Check out the Golang documentation.

With ❤️ by raulcv

🤗 If you found helpful this repo, let me a star or ... 🐣

Buy Me A Coffee