Gochirp is a Golang HTTP server that provides various endpoints for managing chirps and users.
The API is built using the following technologies:
The API provides the following features:
- User registration
- User retrieval
- User deletion
- Polka webhook handling
- User login
- Chirp creation
- Chirp validation
- Chirp retrieval
- Chirp deletion
- Metrics
A health check endpoint.
An endpoint that provides metrics about the API usage.
An endpoint to reset the API.
An endpoint to validate a chirp.
An endpoint to handle chirp-related requests. Requires authentication.
An endpoint to handle user-related requests. Requires authentication.
An endpoint for user login.
An endpoint for user registration.
An endpoint to handle Polka webhooks.
To run the server, execute the following command:
go run main.go- JWT_SECRET: The secret used for JWT authentication.
- POLKA_SECRET: The secret used for Polka webhooks.