7th ASSIGNMENT
The DumpDrive App is a console application made to mimic a real disk drive where users can manage their content, including what's shared with them by other users. The project is built using C# in Visual Studio and is based on a three-tier software architecture. PostgreSQL database is integrated through PgAdmin, while the app communicates with it through LINQ queries and EF Core ORM. While coding this app I also used OOP concepts and some other design patterns.
- Dynamic console UI
- User Authentication
- Folder and file management
- Specific logic integrated for shared content
- Profile management
- Language: C#
- Framework: .NET 9.0
- Database: PostgreSQL
- ORM: Entity Framework Core
- Tools: Visual Studio, PgAdmin
The project utilizes the following NuGet packages:
- Microsoft.EntityFrameworkCore
- Npgsql.EntityFrameworkCore.PostgreSQL
- Microsoft.EntityFrameworkCore.Tools
- Microsoft.EntityFrameworkCore.Design
To get started with this project, you need to have the following installed on your machine:
- .NET 9.0 SDK: You can download the .NET 9.0 SDK from the official .NET website.
- Visual Studio: If you haven't already, download and install it here.
- PostgreSQL: Install PostgreSQL and set up your database. Use PgAdmin for managing your PostgreSQL database.
Steps to Install the Project:
-
Clone and open the Repository: Open a terminal (or command prompt on your machine) and run the following commands:
git clone https://github.com/ivonaaaa/Internship-7-Drive.git
cd Internship-7-Drive -
Restore packages: Restore the NuGet packages required for the project:
dotnet restore
-
Create the database in PGAdmin: In this step you will need to connect to your PostgreSQL server. While doing so, remeber the usernane and password as you will need them later on.
-
Configure connection strring: In the App.config.xml, set your connection string with the right values.
-
Apply migrations and seed data:
cd DumpDrive.Data dotnet ef migrations add InitialCreate dotnet ef database update -
Navigate to the startup layer:
cd ../DumpDrive.Presentation -
Run the code:
dotnet run