This repository contains a Go-based REST API for managing user registrations and events. It provides endpoints for user login, registration, and event management.
- Go: The primary programming language.
- Gorilla Mux: A powerful HTTP router and URL matcher.
- PostgreSQL: A relational database for storing user and event data.
- User registration and cancellation
- Event creation and management
- Secure login functionality
- Clone the repository:
git clone https://github.com/your-username/go-rest-api.git
- Navigate to the project directory:
cd go-rest-api - Install dependencies:
go mod tidy
- Run the application:
go run main.go
The API provides the following HTTP endpoints:
- POST /register: Register a new user.
- POST /login: Authenticate a user.
- POST /events: Create a new event.
- GET /events: Retrieve all events.
Example HTTP requests can be found in the /api-test directory.
Contributions are welcome! If you'd like to contribute, please:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Submit a pull request with a detailed description of your changes.
This REST API was built following along with the course by Maximilian Schwarzmüller. Thank you for the valuable insights and teachings!
- Course: Maximilian Schwarzmüller's Course
- GitHub: Maximilian Schwarzmüller
Special thanks to Maximilian Schwarzmüller for creating the course that this project is based on.
This project is licensed under the MIT License. See the LICENSE file for details.