Loading repository data…
Loading repository data…
furkanogutcu / repository
GoldenCar is a car rental solution. This project includes an enterprise-grade solution for building RESTful services using ASP.NET WebAPI and C#.
GoldenCar is a car rental solution. This project includes an enterprise-grade solution for building RESTful services using ASP.NET WebAPI and C#.
Clone the repo:
git clone https://github.com/furkanogutcu/GoldenCar.git
Open the GoldenCar.sln file with Visual Studio
Open the RentACarContext.cs file in the DataAccess.Concrete.EntityFramework folder and enter your own database connection string
Open Package Manager Console and run the following commands:
cd DataAccess
dotnet ef database update
NOTE: Requires dotnet ef installation. Command for installation:
dotnet tool install --global dotnet-ef
Right click on the WebAPI project (layer) from the Solution Explorer and select Set as Startup Project
Start the project with IIS Express in Visual Studio. Web API is ready and running!
After running the Web API, you can make HTTP requests like:
https://localhost:44372/api/`CONTROLLER_NAME`/`METHOD_NAME`
CONTROLLER_NAME => Each .cs file located in the WebAPI.Controllers folder (For example CONTROLLER_NAME for CarsController: cars )
METHOD_NAME => All of the methods in each .cs file in the WebAPI.Controllers folder
https://localhost:44372/api/cars/getall
https://localhost:44372/api/brands/getbyid?id=3
https://localhost:44372/api/colors/getall
| Technology / Library | Version |
|---|---|
| .NET | 5.0 |
| Autofac | 6.2.0 |
| Autofac.Extensions.DependencyInjection | 7.1.0 |
| Autofac.Extras.DynamicProxy | 6.0.0 |
| FluentValidation | 10.3.0 |
| Microsoft.AspNetCore.Authentication.JwtBearer | 5.0.9 |
| Microsoft.AspNetCore.Http | 2.2.2 |
| Microsoft.AspNetCore.Http.Abstractions | 2.2.0 |
| Microsoft.AspNetCore.Features | 5.0.9 |
| Microsoft.EntityFrameworkCore.Design | 5.0.8 |
| Microsoft.EntityFrameworkCore.SqlServer | 5.0.8 |
| Microsoft.EntityFrameworkCore.Configuration | 5.0.0 |
| Microsoft.EntityFrameworkCore.Configuration.Binder | 5.0.0 |
| Microsoft.IdentityModel.Tokens | 6.12.2 |
| Mime-Detective | 22.7.16 |
| Newtonsoft.Json | 10.0.1 |
The frontend of this project GoldenCar-frontend
Thanks to dear Engin Demiroğ for his contributions.