Skip to content

jersonzc/users-api

Repository files navigation

Users API

An API to interact with users data.

Features

  • Create, update, search, and delete user records.
  • View users individually or in bulk.
  • OpenAPI (Swagger) documentation available.
  • Built-in tracing (via OpenTelemetry).

Requirements

Setup Instructions

1. Prepare your environment

Copy the .env.sample file to .env to set up environment variables:

cp .env.sample .env

2. Launch everything with Docker Compose

docker-compose up --build

This will spin up:

Helpful Commands

Build docs manually:

make generate-openapi

Run tests:

make test

Lint your code:

make lint

Want to Learn More?

This project is a great entry point to:

  • Structuring Go apps using Clean Architecture.
  • Writing APIs with Gin.
  • Integrating Postgres using sqlc.
  • Observability with OpenTelemetry.

Contributions

Thank you for considering contributing to this project. It's awesome of you!

About

An API to interact with users data.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages