This is a simple online order system developed as a Proof of Concept (PoC), using React + TypeScript for the frontend and .NET Minimal API + SQLite for the backend.
Before running the project, make sure you have installed:
- Node.js (v18+ recommended) and npm: https://nodejs.org
- .NET 10 SDK: https://dotnet.microsoft.com/download
- A code editor (recommended: VS Code)
- Open a terminal in the
backend/BakendAPIdirectory. - SQLite is included via
Microsoft.Data.Sqlite, no separate installation required. - Run the backend server, typing in the terminal: dotnet run
The backend will be available at: http://localhost:5000
Main endpoints: /api/products – list products /api/cart/add – add item to cart /api/cart/remove – remove item from cart /api/cart/update – update item quantity /api/checkout – finalize order
- Open another terminal in the frontend/ directory.
- Install dependencies: npm install
- Start the React development server: npm start
- (To view the app) Open your browser at: http://localhost:3000
Available features: - List products - Add/remove products to/from the cart - Update the quantity of each item - Checkout (sends data to backend and clears the cart)
- The frontend communicates with the backend via fetch API at http://localhost:5000.
- The SQLite database (products.db) is created automatically and initialized with default products.
- If the database is deleted, it will be recreated on the next backend run.
Frontend: React, TypeScript, CSS Backend: .NET 10 Minimal API, C#, SQLite Integration: JSON REST API