This project is a Gin-based web application designed to facilitate event creation and registration. It provides a set of RESTful APIs for managing events, allowing users to create new events, view existing events, and register for events.
- POST /signup: User Signup
- POST /login: User Login
- POST /events: Create a new event
- GET /events: Retrieve all events
- GET /events/:id: Retrieve a specific event by ID
- POST /events/:id/register: Register for a specific event
- DELETE /events/:id: Delete a specific event
- DELETE /events/:id/register: Cancel registration for a specific event
To install and run this project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/event-registration.git
-
Navigate to the project directory:
cd event-registration
-
Install dependencies:
go mod download
To start the project, run the following command:
go run .
The server will start running on localhost:8080
by default.
This project provides a backend system for creating and managing events. It allows users to perform the following actions:
- Create new events by providing details such as event name, date, location, and description.
- View a list of all existing events.
- Retrieve details of a specific event by its unique ID.
- Register for an event by providing necessary information.
- Delete an event if it's no longer needed.
This application can serve as a foundation for building a comprehensive event management system, offering flexibility and scalability for various event-based applications.