Code Monkey home page Code Monkey logo

goldencar's Introduction

GoldenCar

GoldenCar is a car rental solution. This project includes an enterprise-grade solution for building RESTful services using ASP.NET WebAPI and C#.

Contents

Getting Started

Installation

  1. Clone the repo:

    git clone https://github.com/furkanogutcu/GoldenCar.git
  2. Open the GoldenCar.sln file with Visual Studio

  3. Open the RentACarContext.cs file in the DataAccess.Concrete.EntityFramework folder and enter your own database connection string

  4. 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
  5. Right click on the WebAPI project (layer) from the Solution Explorer and select Set as Startup Project

  6. Start the project with IIS Express in Visual Studio. Web API is ready and running!

Usage

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

Sample HTTP GET requests:

  1. List all vehicles:
    https://localhost:44372/api/cars/getall
  2. List a brand by id:
    https://localhost:44372/api/brands/getbyid?id=3
  3. List all vehicle colors:
    https://localhost:44372/api/colors/getall

Tech Stack

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

Associated Project

The frontend of this project GoldenCar-frontend

Contributions

Thanks to dear Engin Demiroğ for his contributions.

goldencar's People

Contributors

furkanogutcu avatar

Stargazers

 avatar Muhammet Kılıçarslan Karapınar avatar Nida KUL avatar Birkan Karaer avatar  avatar  avatar Aarya Rajbhandari avatar Mehmet KARAHAN avatar Alaaddin Uğur avatar  avatar Oğuzcan Akyüz avatar SemihKÖKÇÜ avatar Yağmur Buse avatar Abdulkadir Motcu avatar Berkay Gebeş avatar Samet BAYRAM avatar Hüseyin AFŞİN avatar BurakKaracakaya avatar Kerem KORKMAZ avatar  avatar Nevzat Peker avatar mehmet basat avatar Sedat avatar Muammer Diri avatar  avatar Hakan  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.