BookStore is a DotNet Web API built on ASP.NET Core using DotNet Core 6. It provides a set of functionalities for managing users, books, and authors in an online bookstore. The application uses Entity Framework 6 for data access and MySQL as the SQL database. Additionally, it incorporates JWT authentication for secure access and email verification for user registration.
- ASP.NET Core Web API
- DotNet Core 6
- Entity Framework 6
- MySQL (SQL Database)
- MVC Architecture
-
User Management:
- Register new users with email verification.
- Authenticate users using JWT tokens.
- Manage user profiles.
-
Book Management:
- Add, update, and delete books.
- Retrieve a list of books.
- View book details.
-
Author Management:
- Add, update, and delete authors.
- Retrieve a list of authors.
- View author details.
Here is the initial conception that I made for this mini app
-
Clone the Repository:
git clone https://github.com/yourusername/BookStore.git cd BookStore -
Database Setup:
a. Configure the MySQL connection string in
appsettings.json. b. Run Entity Framework migrations: ```bash dotnet ef database update -
Run the Application:
dotnet run
-
API Endpoints:
- User API: /api/User
- Book API: /api/Book
- Author API: /api/Author
To access protected routes, include the JWT token in the Authorization header of your HTTP requests.
The application follows the Model-View-Controller (MVC) architectural pattern for better organization and separation of concerns. The structure includes:
- Controllers: Handle incoming HTTP requests, process user input, and interact with the Model.
- Models: Represent the data and business logic of the application.
- Views: Render the user interface.
Feel free to contribute to the development of BookStore by opening issues and pull requests.
Thank you for choosing BookStore for your online bookstore needs! If you have any questions or concerns, please don't hesitate to reach out.
Happy coding! 📚🚀
)