- BS23-SC24-Assignment-Backend (With BS23-SC24-Assignment-Backend.test for unit testing)
- BS23-SC24-Assignment-Frontend
- .Net (8.0 LTS)
- Node (20.11.0 LTS)
- Clone the repository with the command:
git clone https://github.com/aburifat/BS23-SC24-Assignment-Project.git
- Navigate the folder:
BS23-SC24-Assignment-Project/BS23-SC24-Assignment-Backend
- Open the solution file with Visual Studio:
BS23-SC24-Assignment-Backend.sln
- Configure ConnectionStrings in
appsettings.json
to connect with your PostgreSQL database or you can change the database inProgram.cs
by commenting out the AddDbContext of PostgreSQL and uncommenting the AddDbContext of SQLite. Currently, this project supports any of the PostgreSQL and SQLite databases. - Open NuGet Package Manager Console from:
Tools > NuGet Package Manager > Package Manager Console
. - Run this command to create a migration:
Add-Migration init
. - Run this command to create the database for the first time:
Update-Database
. - Run the project with the
IIS Express
option.
- Navigate the folder:
BS23-SC24-Assignment-Project/BS23-SC24-Assignment-Backend
- Open the folder with Visual Studio Code.
- Open the integrated terminal of the Visual Studio Code from:
Terminal > New Terminal
. - Run this command to install dependencies:
npm i
. - Run this command to start the project
npm run dev
.
- Open the backend project in Visual Studio
- Right-click on the Project
BS23_SC24_Assignment_Backend.tests
in the Solution Explorer, then selectRun Tests
. - Alternatively, run the test from:
Test > Run All Tests
.
The images below show some API calls using Postman
Navigation between the pages is automated for authorization. The user must log in before the task pages, and else login page will automatically display.