Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Online Order System (PoC)

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.


Prerequisites

Before running the project, make sure you have installed:


How to run the backend

  1. Open a terminal in the backend/BakendAPI directory.
  2. SQLite is included via Microsoft.Data.Sqlite, no separate installation required.
  3. 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


How to run the frontend

  1. Open another terminal in the frontend/ directory.
  2. Install dependencies: npm install
  3. Start the React development server: npm start
  4. (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)


Notes

  • 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.

Technologies Used

Frontend: React, TypeScript, CSS Backend: .NET 10 Minimal API, C#, SQLite Integration: JSON REST API

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages