Git Product home page Git Product logo

todo-backend's Introduction

Todo Backend

This is the backend part of a Todo application developed using .NET Core 5 and following the Clean Architecture methodology. The project utilizes SQL Server and Entity Framework. Follow the steps below to get started with the project.

Requirements

  • .NET 5 SDK
  • SQL Server (local or remote)

Project Structure

The project follows the Clean Architecture methodology, where each of the following projects represents a different layer:

  • Entities: Contains the database tables and data models.
  • DataAccess: Contains the code for interacting with the database.
  • Core: Contains common code for general use.
  • Business: Contains the code implementing the business logic.
  • API: Contains the code for the RESTful API.

Installation

  1. Clone the project to your local machine:
git clone https://github.com/hakannyucel/todo-backend.git
  1. Create a new database in SQL Server.

  2. Update the SQL Server connection string in the appsettings.json file:

"ConnectionStrings": {
  "DefaultConnection": "Data Source=your_server;Initial Catalog=your_database;User ID=your_username;Password=your_password"
}
  1. Navigate to the project folder in the command line:
cd todo-backend
  1. Build the project:
dotnet build
  1. To create the database and add sample data, run the following commands sequentially:
dotnet ef database update --project DataAccess
  1. Start the project:
dotnet run --project API
  1. Open your browser and go to http://localhost:5000/swagger to access the Swagger interface and start using the API.

Technologies Used

The project follows the Clean Architecture methodology, where each of the following projects represents a different layer:

  • .NET 5
  • SQL Server
  • Entity Framework Core
  • FluentValidation
  • Autofac
  • log4net

Contributing

If you would like to contribute to the project, please follow the steps below:

  1. Fork the project to your own GitHub account.
  2. Create a new branch: git checkout -b my-new-feature
  3. Make your desired changes and commit them: git commit -am 'Add some feature'
  4. Push the branch to your fork: git push origin my-new-feature
  5. Create a new pull request (PR) and initiate a discussion about your changes.

todo-backend's People

Contributors

hakannyucel avatar

Stargazers

Abdülaziz YILMAZ avatar

Watchers

 avatar

Forkers

abdulazizyilmaz

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.