Code Monkey home page Code Monkey logo

sampleproject's Introduction

# SampleProject

This project is a sample application demonstrating the usage of ASP.NET Web API, ASP.NET MVC, and a Console App. It also includes two class library projects called Services and Models.

## Prerequisites

- .NET 7 SDK
- Visual Studio 2022 (or any compatible code editor)

## Getting Started

1. Clone the repository to your local machine.
2. Open the solution file (`SampleProject.sln`) in Visual Studio.
3. Build the solution to restore NuGet packages and compile the projects.

## Project Structure

The solution consists of the following projects:

- **SampleProject.API**: Contains the ASP.NET Web API controllers and related configuration files.
- **SampleProject.Web**: Contains the ASP.NET MVC controllers, views, and related configuration files.
- **SampleProject.Test**: Contains a console application for interacting with the services.
- **SampleProject.Services**: A class library project that provides various services and business logic.
- **SampleProject.Models**: A class library project that defines the data models used across the solution.

## Running the Application

1. Set the desired startup project (e.g., ProjectName.Api, ProjectName.Mvc, or ProjectName.ConsoleApp) in Visual Studio.
2. Press F5 or click the Run button to start the application.

## API Endpoints

- **GET /api/Product/categories**: Retrieves a list of categories.
- **GET /api/Product/category/{category}**: Retrieves a specific products by category name.

## MVC Views and Controllers

The MVC project provides a user interface to interact with the services. It includes the following views and controllers:

- **HomeController**: Handles product-related actions and index.cshtml view.

## Console App

The console application demonstrates the usage of services in a non-web environment. It includes examples of invoking various service methods and displaying the results.

sampleproject's People

Contributors

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