Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: chi /w rest and openapi and zap for logging #117

Merged
merged 1 commit into from
Jan 12, 2025
Merged

feat: chi /w rest and openapi and zap for logging #117

merged 1 commit into from
Jan 12, 2025

Conversation

ekristen
Copy link
Owner

@ekristen ekristen commented Jan 12, 2025

Overview

Time to update all the things ...

Breaking Changes

  • Saying goodbye to logrus and gorillamux -- thank for you all the good times, sad to stop using these but as they are no longer supported and mature replacements have found there way into the ecosystem it's time to move on.
  • WELCOME zap for logging and chi w/ rest for API.

API

Using rest and chi allows for automatic OpenAPI spec generation, this is super beneficial for using with tools like Postman or Scalar. It also allows for automatic client SDK generation!

Build in Docs and Scalar and Swagger UI

Launch the server and then hit http://localhost:4242/api/v1/docs (for the scalar UI) and http://localhost:4242/api/v1/docs/swagger for the swagger UI.

@ekristen-dev
Copy link

ekristen-dev bot commented Jan 12, 2025

🎉 This PR is included in version 1.8.0-next.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

BREAKING CHANGE: while this is a template repo and not held to the same expectation of a project
that is actually imported, I wanted to call out the major set of changes to the template with
this update.

- replacing gorilla/mux with chi/rest for openapi generation
- replacing logrus with zap
- updating to goreleaser@v2
@ekristen-dev
Copy link

ekristen-dev bot commented Jan 12, 2025

🎉 This PR is included in version 2.0.0-next.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ekristen ekristen changed the title feat!: goodbye logrus, hello zap, goodbye gorilla, hello chi/rest/use… feat: chi /w rest and openapi and zap for logging Jan 12, 2025
@ekristen ekristen merged commit 5e96929 into main Jan 12, 2025
7 of 9 checks passed
@ekristen ekristen deleted the next branch January 12, 2025 20:54
@ekristen-dev
Copy link

ekristen-dev bot commented Jan 12, 2025

🎉 This PR is included in version 2.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants