An API for the BallBuddies web app, designed to facilitate sports enthusiasts in creating, managing, and attending sports events. The API supports basic CRUD operations for events and user interactions.
Some of the features include:
- Create Events: Endpoint to allow users to create new sports events, providing event details such as sport type, location, date, and time.
- View Events: Endpoint to fetch a list of upcoming sports events, including information about the event creator, sport type, price, etc.
- Attend Events: Endpoint to enable users to join and attend events created by other users. The event attendance count is updated accordingly.
- Manage Events: Endpoint for event creators to manage their created events, enabling them to update event details, delete events, or remove attendees.
- C# 10.0
- .Net 6.0
- Clone the project
git clone https://link-to-project
-
Open the project folder in Visual Studio or Visual Studio code
-
Navigate to the
BallBuddies
project, open theappsettings.json
file, and change theConnectionStrings/DbConnection
to your own local database connection string. -
Also change the
JwtSettings/validAudience
to your own local development URL -
Open your terminal and run this command
setx SECRET "{enter your secret key}" /M
to set a secret key in your local environment -
Run application in Swagger UI
├── Solution Items
├ ├── BallBuddies
├ ├── BallBuddies.Data
├ ├── BallBuddies.Models
├ ├── BallBuddies.Presentation
├ ├── BallBuddies.Services
-
BallBuddies
contains theprogram.cs
andappsettings.json
files -
BallBuddies.Data
contains folders for role configuration, migrations, DbContext, interfaces, and implementations for all the model repositories and generic repository. -
BallBuddies.Models
contains folders for data transfer objects(DTOs), auto mapper mapping configurations, enums, and global error handling. -
BallBuddies.Presentation
contains folders for the controllers and model bindings -
BallBuddies.Services
contains folders for Action filters, custom formatters, service extension methods, interfaces, and implementations for all the model services and service manager
Please support me by giving the project a star ⭐