Onlinelibrary is a web application built using ASP.NET Core MVC, allowing users to browse books, add books, view reviews, and add reviews. The project utilizes SQLite database to store data and session mechanism to manage logged-in users. User passwords are stored as hashes.
- ASP.NET Core MVC (.NET 7.0)
- Entity Framework Core
- SQLite
- Bootstrap (for styling)
- User registration and login
- Browsing list of books
- Viewing detailed information about books
- Adding books
- Adding reviews for books
- Displaying latest books and top-rated books
Onlinelibrary/ │ ├── Controllers/ │ ├── AccountController.cs │ ├── BooksController.cs │ ├── Data/ │ ├── DbInitializer.cs │ ├── Models/ │ ├── Author.cs │ ├── Book.cs │ ├── LibraryContext.cs │ ├── Review.cs │ ├── User.cs │ ├── ErrorViewModel.cs │ ├── Views/ │ ├── Account/ │ │ ├── Login.cshtml │ │ ├── Register.cshtml │ │ │ ├── Books/ │ │ ├── Index.cshtml │ │ ├── Details.cshtml │ │ ├── Create.cshtml │ │ ├── AddReview.cshtml │ │ ├── TopRatedBooks.cshtml │ │ │ ├── Shared/ │ │ ├── _Layout.cshtml │ │ ├── _ValidationScriptsPartial.cshtml │ │ │ ├── Home/ │ │ ├── Index.cshtml │ │ ├── Privacy.cshtml │ │ │ ├── _ViewImports.cshtml │ ├── _ViewStart.cshtml │ ├── wwwroot/ │ ├── css/ │ ├── js/ │ ├── appsettings.json ├── Program.cs ├── Onlinelibrary.csproj ├── README.md
-
Clone the repository: git clone https://github.com/yourusername/BibliotekaOnline.git
-
Navigate to the project directory: cd BibliotekaOnline
-
Restore dependencies: dotnet restore
-
Build the project: dotnet build
-
Run database migrations: dotnet ef migrations add InitialCreate dotnet ef database update
-
Run the application: dotnet run
-
Program will provide local link. Go there and done! Everything is working!
Author Tomasz Madeja
License The project is licensed under the MIT License. Details can be found in the LICENSE file.