The SelfImprovementStore-API is a GraphQL API built using .NET Core. This API powers the backend of the Self Improvement Store, an online web shop that sells items aimed at helping people to improve themselves, like books on self-improvement, t-shirts with positive messages, and workout equipment.
- User Registration and Authentication
- Product Browsing and Management
- Order Management
- Shopping Cart Functionality
- Secure Payment Processing (coming soon)
- .NET Core
- ASP.NET Core Identity for Authentication
- Entity Framework Core with PostgreSQL for Data Access
- GraphQL for API Structure
- .NET Core 3.1 or higher
- PostgreSQL 12 or higher
-
Clone the repository:
git clone https://github.com/yourusername/SelfImprovementStore-API.git
-
Navigate into the project directory and install the dependencies:
cd SelfImprovementStore-API dotnet restore
-
Update the
appsettings.json
file with your PostgreSQL server details. -
Run the migrations to create the database schema:
dotnet ef database update
-
Run the project:
dotnet run
This project uses xUnit for testing. To run the tests, use the following command:
dotnet test