Code Monkey home page Code Monkey logo

mediamarktapp's Introduction

MediaMarkt App

Application Overview

This application is composed of two main parts: a client application developed using React and TypeScript using Vite as a build tool, and an API developed using .NET 6. Also there is a SQL Server Database to store and manage the products.

Prerequisites

  • Node.js and npm installed for the client application
  • .NET 6.0 SDK installed for the API
  • SQL Server for the Database

How to Start

Create the database

  • The API is developed using EF Core in a Code-First way.
  • The DB will be created the first time you run the API.
  • Ensure the Database connection string in mediamarkt\mediamarktAPI\src\Web.API\appsettings.Development.json is that you want for your environment
{
  "ConnectionStrings": {
    "Database": "Server=localhost; Database=Mediamarkt;Integrated Security=True;TrustServerCertificate=True;"
  },
  ...
}

Start the API

  • Navigate to the API directory
  • Restore the dependencies with dotnet restore
  • Start the API with dotnet run

Please ensure that both the client application and the API are running simultaneously for the application to function correctly.

Consuming the API

There is a swagger view to consume and test the API. It is available at: https://localhost:7232/swagger/index.html

Start the Client Application

  • Navigate to the client application directory
  • Install the dependencies with npm install
  • Start the application with npm run dev
  • The application will be available at http://localhost:5173

Tests

This application has Unit Tests for both Client Application and for the API

API Unit Tests:

To run the API Unit tests:

  • Open a terminal
  • go to mediamarkt\mediamarktAPI\ folder
  • execute dotnet test command

Client Unit Tests:

To run the Client Unit tests:

  • Open a terminal
  • go to mediamarkt\mediamarktClient\ folder
  • execute npm run test command

mediamarktapp's People

Contributors

aleixtm13 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.