Skip to content

A RESTful API and WebSocket service built with Go. This project serves as a learning exercise, where I implement various features such as authentication, CRUD operations for posts, and real-time communication using WebSockets.

Notifications You must be signed in to change notification settings

martinnacimiento/rest-ws-golang

Repository files navigation

rest-ws-golang

A RESTful API and WebSocket service built with Go. This project serves as a learning exercise, where I implement various features such as authentication, CRUD operations for posts, and real-time communication using WebSockets.

Technologies

  • Validator
  • PostgreSQL
  • Docker
  • JWT
  • Mux

Features

  • Authentication
  • Users's CRUD
  • Post's CRUD
  • Database integration with PostgreSQL
  • User's pagination
  • Endpoints validations
  • WebSockets

🚀 Getting started

To get started, ensure you have Docker installed. Then, follow these steps to set up the database and run the application:

  1. Navigate to the database directory:
cd database
  1. Build the PostgreSQL Docker image:
docker build . -t postgres-rest-ws-golang
  1. Run the PostgreSQL container:
docker run -p 54321:5432 postgres-rest-ws-golang
  1. Return to the project root directory:
cd ..
  1. Run the Go application:
go run main.go

Now, you can test the API endpoints using an HTTP client like Postman.

About

A RESTful API and WebSocket service built with Go. This project serves as a learning exercise, where I implement various features such as authentication, CRUD operations for posts, and real-time communication using WebSockets.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published