The e-commerce API streamlines user interactions and management, encompassing authentication, product handling, cart management, orders, and payments, providing a comprehensive solution for online store operations.
- C#: The C# language is the most popular language for the .NET platform, a free, cross-platform, open-source development environment.
- .NET Core: ASP.NET Core is an open-source modular web-application framework. It is a redesign of ASP.NET that unites the previously separate ASP.NET MVC and ASP.
- Microsoft SQL Server: Microsoft SQL Server (Structured Query Language) is a proprietary relational database management system developed by Microsoft.
- JWT (JSON Web Tokens): A standard for securely transmitting information between parties as JSON objects, commonly used for authentication and authorization in web applications.
- Docker: Containerization platform that simplifies the deployment and management of applications by packaging them into portable containers, ensuring consistency across different environments.
- Docker Compose: Tool for defining and running multi-container Docker applications, enabling seamless configuration and orchestration of complex application architectures.
-
Install Docker here
-
Install Git here
-
Create a working directory:
mkdir ~/ECommerce && cd ~/ECommerce
-
Clone the repository
git clone https://github.com/ak4m410x01/ECommerceAPI.git .
-
Start the application
docker compose up -d
-
Access API: http://localhost:8080/Swagger/index.html
-
Access DB: localhost:1433
-
Don't forget .env file with variables
Variable | Value |
---|---|
SA_PASSWORD | P@ssw0rd |
ConnectionStrings__DefaultConnection | Server=sqlserver;Database=SakanyDb;User ID=sa;Password=P@ssw0rd;Encrypt=False;Trust Server Certificate=True; |
ASPNETCORE_ENVIRONMENT | Development |
note: these variables are for the lab environment only... don't use these in xxx production environments xxx