tolgaozkann / sampleproject Goto Github PK
View Code? Open in Web Editor NEWSample MVC, API and Console Project for take data from an api and display it.
Sample MVC, API and Console Project for take data from an api and display it.
# 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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.