-
Make sure you have installed the latest updates of Visual Studio 2022.
-
Install DotVVM for Visual Studio 2022 extension by searching for
dotvvmin the Extensions > Manage Extensions menu. -
Restart Visual Studio to install the extension.
-
Clone this repository in Visual Studio.
-
Make sure you are switched in the
mainbranch. -
Open the solution
src\VtipBaze.sln.If Visual Studio asks to upgrade the projects to a higher version of .NET Framework because of missing targeting packs, select Yes. We will need to upgrad all projects to .NET Framework 4.7.2 or newer version during the proces anyway.
-
Open the
App.configfile located in theAltairis.VtipBaze.Importproject. -
Update the connection string to point to the database. If the database with the specified name does not exist, it will be created automatically.
Caution: It needs to be changed on 3 places - lines 7, 8 and 16 (without the specification of the database).
For SQL Server Express: keep the connection strings as they are
For SQL LocalDB:
lines 7 & 8:
Data Source=(localdb)\MsSqlLocalDb; Initial Catalog=VtipBaze-old; Integrated Security=true; MultipleActiveResultSets=Trueline 16:
Data Source=(localdb)\MsSqlLocalDb; Integrated Security=true; MultipleActiveResultSets=True -
Set the
Altairis.VtipBaze.Importproject as the startup project. -
Run the project by pressing F5. It will initialize the database.
If the tool ends without printing out anything, it means that the database was created successfully.
If Visual Studio stops on an error, the connection string is probably incorrect.
-
Open the
Web.configfile located in theAltairis.VtipBaze.WebCoreproject. -
Update the connection string to point to the database. If the database with the specified name does not exist, it will be created automatically.
Caution: It needs to be changed on 3 places - lines 7, 8 and 70 (without the specification of the database).
For SQL Server Express: keep the connection strings as they are
For SQL LocalDB:
lines 7 & 8:
Data Source=(localdb)\MsSqlLocalDb; Initial Catalog=VtipBaze-old; Integrated Security=true; MultipleActiveResultSets=Trueline 70:
Data Source=(localdb)\MsSqlLocalDb; Integrated Security=true; MultipleActiveResultSets=True -
Make sure the folder
C:\temp\mailpickupexists. When the application needs to send an e-mail, it generates a file in this folder instead.
-
Set the
Altairis.VtipBaze.WebCoreproject as the startup project. -
Run the project by pressing F5.
-
Make sure that the home page displays some jokes.
-
Make sure the Tags button on the top displays the categories of jokes.
-
Try to submit a joke on the Add your own page.
-
Look in the
c:\temp\mailpickupfolder if a file with the outgoing e-mail was generated. -
Try to sign in into the application. Locate the π symbol in the page footer, and use
adminandadmin123as user credentials. -
Try to assign the submitted joke in some category (for example KnockKnock) and approve it.
-
Visit the home page again to see whether the joke appears in the list.




