https://github.com/ozturkeniss/winformsdotnet
A Windows Forms application built with C# .NET and MongoDB, implementing a movie rating system with user authentication, CRUD operations, friend management, and real-time notifications using a document-based database structure.
https://github.com/ozturkeniss/winformsdotnet
asp-net-core csharp mongodb movie-rating-app windows-form-application
Last synced: 10 months ago
JSON representation
A Windows Forms application built with C# .NET and MongoDB, implementing a movie rating system with user authentication, CRUD operations, friend management, and real-time notifications using a document-based database structure.
- Host: GitHub
- URL: https://github.com/ozturkeniss/winformsdotnet
- Owner: ozturkeniss
- Created: 2025-02-28T21:48:56.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T21:56:04.000Z (over 1 year ago)
- Last Synced: 2025-06-26T10:50:24.746Z (about 1 year ago)
- Topics: asp-net-core, csharp, mongodb, movie-rating-app, windows-form-application
- Language: C#
- Homepage:
- Size: 1.57 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Movie Rating Application
A Windows Forms application built with C# .NET and MongoDB, implementing a movie rating system with user authentication, CRUD operations, friend management, and real-time notifications using a document-based database structure.

## Features
- **User Authentication**
- Login/Register system
- Role-based access (Admin/User)
- Secure password hashing
- **Movie Management**
- Browse movie catalog
- View detailed movie information
- Rate and comment on movies
- Add movies to favorites
- **Social Features**
- Send friend requests
- Accept/Reject friend requests
- Real-time notifications
- Gift movies to friends
- **Admin Features**
- Manage movie catalog
- User management
- System monitoring
## Technologies Used
- **Frontend:** Windows Forms (.NET)
- **Backend:** C# .NET
- **Database:** MongoDB
- **Authentication:** BCrypt
- **Image Handling:** Gravatar
1. Clone the repository
```bash
git clone [https://github.com/kalzimkholodros/WinformsDotnet]
```
2. Install MongoDB on your system
- Download and install MongoDB Community Server
- Create a database named "movieRatingDb"
- Create collections: "users", "movies"
3. Configure MongoDB Connection
- Update the connection string in `MongoDBService.cs`
- Default connection: `mongodb://localhost:27017`
4. Run the Application
- Open the solution in Visual Studio
- Build and run the project
## Database Structure
### Users Collection
```json
{
"username": "string",
"password": "string (hashed)",
"role": "string",
"balance": "decimal",
"friends": "array",
"friendRequests": "array",
"notifications": "array",
"favorites": "array",
"ownedMovies": "array",
"receivedGifts": "array"
}
### Movies Collection
```json
{
"title": "string",
"imageUrl": "string",
"description": "string",
"releaseYear": "integer",
"director": "string",
"genre": "string",
"cast": "array",
"price": "decimal",
"isOnSale": "boolean",
"discountRate": "decimal",
"userRatings": "array",
"averageUserRating": "double",
"purchaseCount": "integer"
}
## Default Users
- **Admin Account**
- Username: admin
- Password: admin123
- Role: admin
- **Test User Account**
- Username: user1
- Password: admin123
- Role: user
## Acknowledgments
- Movie data and images sourced from IMDB
- Icons and UI elements from Microsoft Windows Forms
- Profile pictures handled by Gravatar