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].
- Install the latest version of Visual Studio (including ASP.NET and web development, Node.js development, Data storage and processing)
- Install node.js (https://nodejs.org/en/download/package-manager)
- Install ef core tools (https://learn.microsoft.com/en-us/ef/core/cli/dotnet)
- Install SSMS (optionally https://learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16)
- Download this repository, open the AcademicFlow.sln file with VisualStudio
You can do migrations (database will be empty) OR restore database with .bak file in .../resources/AcademicFlow.bak
- 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)
- 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
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:
- Administrators pievieno jaunu lietotāju un rediģē tam lomu.
- 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.
- Ja viss bija izdarīts pareizi - lietotājs tiek pāradresēts lietotāja profilā