Giter VIP home page Giter VIP logo

rest-api's Introduction

๐Ÿ’ป Project

REST API for school management, with the following tables created by Code First and with SQLite: Students, Teachers, Pedagogues. Complete CRUD and MVC Pattern, plus Fluent Validation for field validation.

The project was developed as the final project of the first module of the Professionalizing course in Full Stack development.

Technologies

List of technologies used in the project:

Abstraction methodology applied for development:

  • 1. Packages installation
  • 2. Base Class declaration
  • 3. Models creation
  • 4. Context creation
  • 4.1. Dependency injection
  • 4.2. Connection String configuration
  • 5. Fluent API configuration
  • 5.1. Initial data insert
  • 6. Migrations perform
  • 7. Data Transfer Objects creation
  • 8. Interfaces creation
  • 8.1. Repositories creation
  • 8.2. Controllers creation
  • 9. Fluent Validation configuration
  • 9.1. Dependency injection
  • 10. Database update
  • 11. Commit

Running the project

  1. Clone the repository:
$ git clone https://github.com/alexandrenolla/API-REST
$ cd API-REST
  1. Change the path at the Connection String in the appsettings.Development.json file to the path of your local folder:
 "ConnectionStrings": {
    "LabSchoolContext" : "Data Source=/yourlocalpath/[alexandre]labschoolbd.db;"
  } 
  1. Install the following packages by running the commands:
 dotnet add package Microsoft.EntityFrameworkCore  

 dotnet add package Microsoft.EntityFrameworkCore.Tools 
 
 dotnet add package Microsoft.EntityFrameworkCore.Design

 dotnet add package Microsoft.EntityFrameworkCore.Sqlite
  1. Run the command:
 dotnet run

The API will be available at http://localhost:5127/swagger.

rest-api's People

Contributors

alexandrenolla avatar

Watchers

 avatar

Forkers

panchiniak

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.