Code Monkey home page Code Monkey logo

aspnet-core-school-app's Introduction

ASP .Net Core School Application - Agate Exercise 01

My exercise project with ASP .NET Core in Agate Internship. This app is a CRUD application of a School that based on many forms, they are Web MVC Appliaction and API Application (separated into two projects, these are normal/basic API and OData (Open Data) protocol API).

Solution Structure


I classify my program solution into five separate projects, they are

  1. Agate_Model - General model for this solution
  2. Agate_API - Basic API Application
  3. Agate_View - MVC Application
  4. Agate_Odata - OData-based API Application
  5. Agate_Test - Unit Test with XUnit

Data Model


In this app, I made two entities with EF Core, that translated into two tables in MySQL, they are

  1. Student
    • ID (Int - PK)
    • Name (String)
    • Grade (Int)
    • Class Number (Int)
  2. Class
    • Grade (Int - PK)
    • Class Number (Int - PK)

Student and Class entity have one-to-many relationship, that every class has many students, but a student only join one class.

Feature Used


In this exercise app, I have learned and implemented these

  1. JSON Data Format with the Serialization & Deserialization of Data
  2. Dependency Injection
  3. Routing & Middleware
  4. Database (with In-memory and MySQL DB) & LINQ (Language-Integrated Query)
  5. Migration & Data Seeding
  6. Multiple Software Environment (Development, Debug, Staging, Sandbox, Release)
  7. User App Secret
  8. MVC (Model-View-Controller) Architecture
  9. View Rendering & Tag Helper
  10. HTTP Request (API's data fetching)
  11. HTTP Context Modifying
  12. Authentication (with ASP .NET Core Identity Library)
  13. Localization & Globalization
  14. OData (Open Data) Protocol
  15. Swagger (an API Documenting Library)
  16. Unit Test (with XUnit Library)

Requirement


Before you run this app, you should have these application

  1. Visual Studio - To compile and start the app
  2. Web Browser (such Mozilla, Chrome, etc) - To use/operate MVC app
  3. API Development App (such as Postman or Insomnia - To use/operate API app

How to Compile and Start


  1. Open Visual Studio, then open the solution with it.
  2. Optional step, select clean the solution from Build menu
  3. Select Build the solution or Rebuild the solution from Build menu Successfully Compiled Message
  4. Select the App that you want to run/start from the toolbar (you can try to select to run multiple project too)
  5. Then run the project by select green play button beside it (or you can try to select it from Debug menu) Successfully Compiled Message
  6. After runned successfully, open/operate the app by use web browser or API dev app.

How to Use


NOT FINISHED YET, contact me for details

aspnet-core-school-app's People

Contributors

primayoriko 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.