This project is a CRUD (Create, Read, Update, Delete) application built with .NET Core for the backend and React for the frontend. It allows users to manage categories and products in an online store.
-
Database Setup:
- Create a SQL Server database named
LuftStore
. - Run the following command in the Package Manager Console (PMC) to apply the migration and update the database schema:
Update-Database -context applicationdbcontext
- Create a SQL Server database named
-
Run Backend API:
- Open the solution in Visual Studio.
- Set the API project (
LuftStore.API
) as the startup project. - Run the project (press F5 or click the Run button).
- The backend API will be hosted at
http://localhost:5027
.
-
Install Dependencies:
- Navigate to the
ClientApp
directory. - Run
npm install
to install the necessary dependencies.
- Navigate to the
-
Run React App:
- After installing dependencies, run
npm start
. - The React app will be hosted at
http://localhost:3000
.
- After installing dependencies, run
- Once both the backend API and frontend React app are running, you can navigate to
http://localhost:3000
in your web browser to access the application. - The application allows you to perform CRUD operations on categories and products.
- Use the provided UI to create, read, update, and delete categories and products.
-
Backend:
- .NET Core
- Entity Framework Core
- SQL Server
-
Frontend:
- React
- React Router
Contributions are welcome! If you find any issues or would like to suggest improvements, please open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.