Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

CankayaUniversity/ceng-407-408-2019-2020-Private-Tutoring-Application

Repository files navigation

ceng-407-408-2019-2020-Private-Tutoring-Application

Private Tutoring Application

Team Members

  • Hande Aydın - 201511410
  • Eyüp Can Turğut - 201411062
  • Damla Yıldırım - 201411068
  • Serhat Cenkayoğlu - 201511301

Compilation / Installation Guide (for Windows)

Before starting, make sure that you have installed Visual Studio 2019 (it supposed to include ASP.NET and web development) and PostgreSQL on your computer.

Step 1

Open pgAdmin application. (pgAdmin is the most popular and Open Source administration and development platform for PostgreSQL.) To find the application easily, click search button on taskbar and type "pgadmin".

Step 2

Enter your password. Then click on Servers' arrow at its left.

Note: After clicking arrow, it is possible that it may ask you to enter your password again.

Step 3

Right click on Databases. Then select Create > Database....

Step 4

Enter a Database name and save it. It could be anything that you want.

Step 5

Click on database at left that you have just created. It will connect the database and notify you that it is connected.

Nodification

Step 6

Download the project from Releases. Extract it and open PrivateTutoringApplication.sln file.

Step 7

From Solution Explorer, click appsettings.json file.

Step 8

Change Password and Database fields as shown below and save it.

Step 9

From Solution Explorer again, click PrivateTutoringApplication.Model > Infrastructure > DatabaseContext.cs file.

Step 10

Change Password and Database fields like previous step and save it.

Step 11

Click on Package Manager Console at bottom.

Step 12

Set Default Project field as PrivateTutoringApplication.Model.

Step 13

Type the code below to console and press enter.

Add-migration anyname

Note: Instead of anyname, you could type anything you want, it doesn't matter. This will compare and find difference between datababase and model code.

When it's built succeeded, the console will notify you as below.

Step 14

Type the code below and enter.

Update-database

If succeed, the console will notify you as below.

Step 15

That's it! You can run the application by clicking IIS Express button at top.