This project is a simple e-commerce application developed using Angular for the frontend and ASP.NET Core for the backend. The application allows users to view products, add them to their cart, and proceed to checkout. Users need to register and log in to make purchases.
- User registration and authentication
- Product listing
- Add products to the cart
- View and manage the cart
- Checkout process
- Order management
- JWT-based authentication
- Frontend: Angular, Bootstrap
- Backend: ASP.NET Core, Entity Framework Core
- Database: SQL Server
- Authentication: JWT (JSON Web Tokens)
- Node.js and npm (Node Package Manager) installed
- .NET Core SDK installed
- SQL Server installed
-
Clone the repository:
git clone https://github.com/mfurkanayhan/eCommerce.git
-
Navigate to the project directory:
cd eCommerce
-
Navigate to the backend project directory:
cd eCommerceServer -
Restore the dependencies:
dotnet restore
-
Update the database:
dotnet ef database update
-
Run the application:
dotnet run
The backend server will start on http://localhost:5222 for HTTP and https://localhost:7250 for HTTPS.
-
Navigate to the frontend project directory:
cd ../eCommerceClient -
Install the dependencies:
npm install
-
Run the application:
ng serve
The frontend application will start on http://localhost:4200.
- POST
/api/Auth/Register: Register a new user - POST
/api/Auth/Login: Login a user and get a JWT token
- GET
/api/Home/GetProducts: Get a list of all products
- GET
/api/Orders/GetAll: Get all orders for the logged-in user
- GET
/api/Products/GetAll: Get a list of all products
- GET
/api/ShoppingCarts/GetAll: Get the user's shopping cart - GET
/api/ShoppingCarts/Increment: Increment the quantity of a product in the cart - GET
/api/ShoppingCarts/Decrement: Decrement the quantity of a product in the cart - GET
/api/ShoppingCarts/RemoveById: Remove a product from the cart by ID - GET
/api/ShoppingCarts/Pay: Proceed to payment
For any questions or issues, please contact [M.Furkan Ayhan] at [mfurkana067@gmail.com].







