Skip to content

Latest commit

 

History

History
63 lines (49 loc) · 2.54 KB

README.md

File metadata and controls

63 lines (49 loc) · 2.54 KB

Examination System API

Project Overview

Examination System is a comprehensive online platform designed to facilitate the creation, management, and participation in quizzes and exams. Built using ASP.NET Core Web API and EF Core, this system aims to provide an intuitive and robust environment for both instructors and students.

Getting Started

To get started with the Examination System API project, follow these steps:

  1. Clone or download the project repository to your local machine.
  2. Open the project in your preferred development environment.
  3. Configure the project settings, including database connection strings, JWT token settings, and other environment-specific configurations.
  4. Run the project and access the API endpoints to retrieve information about courses, exams, instructors, and ... etc.

Prerequisites

Examination System API (Endpoints) is designed to be user-friendly and intuitive, making it easy for students and instructors to navigate. Here's a step-by-step guide on how to use the Endpoints effectively:

  • You will need the latest Visual Studio 2022 and the latest .NET Core 8.
  • You will need an MS SQL Server
  • Make sure from the configuration in the AppSettings.json file that meets the application features : (JWT for Authentication and Authorization)

JWT Configuration Section

"JWT": {
    "ValidIssuer": "",
    "ValidAudiance": "",
    "Key": "",
    "DurationInMintues": 
  },
    Install-Package AutoMapper.Extensions.Microsoft.DependencyInjection
    Install-Package Microsoft.AspNetCore.Identity.EntityFrameworkCore
    Install-Package Microsoft.EntityFrameworkCore
    Install-Package Microsoft.EntityFrameworkCore.Tools
    Install-Package Microsoft.EntityFrameworkCore.SqlServer
    Install-Package Microsoft.AspNetCore.Authentication.JwtBearer
    Install-Package Swashbuckle.AspNetCore
  • In Package Manager Console make Db migration using command
Add-Migration InitialMigration
  • Write another command to update the database
Update-Database
  • Change the connection string (SQL Server, username & password )
 "ConnectionStrings": {
    "DefaultConnection": "Data Source=[Server Name];Initial Catalog=[DataBase Name];User ID=[Sql server Username];Password=[Sql server Password];Connect Timeout=30;Encrypt=False;Trust Server Certificate=True;Application Intent=ReadWrite;Multi Subnet Failover=False"
  }