Skip to content

Latest commit

 

History

History
63 lines (48 loc) · 3.81 KB

README.md

File metadata and controls

63 lines (48 loc) · 3.81 KB

AcademicFlow

Academic management system, created as a university project in a team.

Features:

  • Authentication/authorization from scratch
  • Role system with many roles to one user relation
  • Admin/Professor/Student roles
  • Course and assignment system
  • Assignment submitting and grading
  • Management of all the data and relations

Sistēmas dokumentācija un citi prezentēšanas faili ir pieejami /resources mapē un šeit: https://universityoflatvia387-my.sharepoint.com/:f:/g/personal/af21043_edu_lu_lv/EkkDZQu9jglFtMWV4tmkKaEBtHEU5GqXnyw5VzPdyoB0RA?e=8DGxcS

Ja jums rodas jautājumi vai neskaidrības, lūdzu rakstiet uz [email protected].


How to run the application:

You can do migrations (database will be empty) OR restore database with .bak file in .../resources/AcademicFlow.bak

For database migration:

  • Open AcademicFlow/AcademicFlow.Migrations/ folder with cmd (could also be done directly in VisualStudio)
  • Run this command in cmd and close the window after success: dotnet ef database update
  • (optional) In case you can not to connect to your database, check ...\AcademicFlow\AcademicFlow\appsettings.json file. Look for "ConnectionStrings" -> "AcademicFlowConnectionString" string. Change value to "Server=localhost;Database=AcademicFLow;Trusted_Connection=True;MultipleActiveResultSets=true;TrustServerCertificate=True" record. Or change "Server" value in case your database connection is different. Check the same string in ...\AcademicFlow\AcademicFlow.Migrations\appsettings.json.
  • If everything is fine - press green arrow button on the top of the screen (in the middle of the toolbar) image

For database restore:

  • Open SQL Server Management Studio and connect to the target SQL Server instance.
  • Right-click on the Databases node, and select Restore Database.
  • Select Device and click the ellipses (...)
  • In the dialog Select backup devices, click Add, navigate to the database backup in the filesystem of the server, and select the backup. Click OK.
  • If needed, change the target location for the data and log files, in the Files pane. Note that it is best practice to place data and log files on different drives.
  • Click OK. This will initiate the database restore. After it completes, you will have the AcademicFlow database installed on your SQL Server instance.

The application shoud run successfully.

On login enter:

  • Username: admin
  • For Password enter: BadPassword01

Lietotāja izveidošana:

Sistēmā ir pievienota drošības pārbaude - nereģistrēti lietotāji nevar piekļūt sistēmai. Lai lietotājs būtu reģistrēts, tam arī jābūt kāda lome : administrators, students vai profesors. Vai arī visi kopā, bet jābūt vismaz viena. Tad secība lietotāja izveidošanai ir sekojoša:

  1. Administrators pievieno jaunu lietotāju un rediģē tam lomu.
  2. Pēc speciālas saites (var nokopēt, nospiežot kopēšanas pogu "Register Link" tabulā) lietotājs ievada jaunu lietotāja vārdu un paroli.
  3. Ja viss bija izdarīts pareizi - lietotājs tiek pāradresēts lietotāja profilā

image

image