This guide walks you through everything needed to get Tienda Mi Cholo S.A.C running locally — from cloning the repository and configuring the database connection to logging in for the first time and registering your first sale.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/interezante456-pixel/nuevo-proyecto-viernes/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Make sure you have the following installed before you begin:
- .NET 10 SDK
- SQL Server or SQL Server Express LocalDB (included with Visual Studio)
- Visual Studio 2022+ with ASP.NET workload or VS Code with the C# Dev Kit extension
- EF Core CLI tools:
dotnet tool install --global dotnet-ef
Configure the connection string
Open The default points to SQL Server LocalDB using Windows Authentication. To connect to a different SQL Server instance, replace the connection string:
appsettings.json and locate the CadenaSQL key:appsettings.json
appsettings.json
| Component | Default value | Description |
|---|---|---|
Data Source | (localdb)\\MSSQLLocalDB | SQL Server instance |
Initial Catalog | TIENDA_MICHOLO | Database name |
Trusted_Connection | True | Use Windows auth (LocalDB only) |
TrustServerCertificate | True | Skip TLS cert validation (dev only) |
Apply database migrations
From the This creates the
Final proyecto directory, run:TIENDA_MICHOLO database, applies all three migrations (schema creation, product status column, nullable client fields), and seeds the following initial data:- Roles: Administrador, Gerente, Cajero
- Admin user:
admin@micholo.com/admin123 - Default client: Público General (used for anonymous Boleta sales)
- Product categories: Lácteos, Bebidas, Snacks, Limpieza, Abarrotes, Frutas y Verduras
If
dotnet ef is not found, install the EF Core CLI: dotnet tool install --global dotnet-efRun the application
Properties/launchSettings.json (default http://localhost:5020). It automatically redirects to the login page at /Acceso/Login.Log in
Use the seeded administrator credentials:
After a successful login, you are redirected to the Dashboard (
| Field | Value |
|---|---|
admin@micholo.com | |
| Password | admin123 |
/Home/Index) showing today’s KPIs.Register your first sale
- Navigate to Ventas → Nueva Venta in the sidebar.
- Select a receipt type — Boleta (default) or Factura.
- Type a product name in the search box (at least 2 characters). Results appear after 300ms.
- Click a product to add it to the cart. Adjust the quantity if needed.
- Click Registrar Venta. The stock is decremented automatically and a sequential receipt number is generated.
SQL Server LocalDB is only available on Windows. On macOS or Linux, use a full SQL Server instance via Docker:
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=YourStrong@Passw0rd" -p 1433:1433 -d mcr.microsoft.com/mssql/server:2022-latest