Chillout room
" Chillout Room " is a web application based on ASP.NET Boileplate version 6.0.0. This Boilerplate contains ready solutions for web applications, such as authorization, authentication, session management and many other useful functionalities. As part of " Chillout Room ", tools such as ASP.NET MVC 5.X were used. In addition, Entity Framework was used to create the database, and to create interactive elements in the JQuery user interface.
The purpose of creating the application was to explore .NET technology and apply it in practice.
Functionality
The main functionality of the application is the game " plantation ", which involves breeding plants. A configuration panel (CMS system) was created for her. The game is divided into districts, and each of them has its own guardian, who in the configuration panel in the form of filling the forms defines what is to be found on it. You can define things such as fertilizer, soil, lamp, water, etc. products and their requirements and rewards.
Planting player guide
Gameplay
The second game is a circle and a cross. You can play against the computer at various levels of difficulty, as well as against other players.
The application uses three types of tests.
Selenium tests
Structure tests - they check whether the definitions of the district guardian are correct.
Unit tests
Selenium IDE tests and unit tests contain only examples of tests. They do not test the entire application.
Technologies
C#
Javascript
Html
CSS
ASP.NET MVC 5.X.
Entity Framework
jquers
Bootstrap
Signalr
Selenium IDE
xunit
Shouldly
How to start the application
Visual Studio
- In the " Czuczenland.web " project, add " settings.config " file and complete it according to the template:
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="AdminPassword" value=""/>
</appSettings>
- In the " adminpassword " key value, enter your password for the admin host.
- In the " Czuczenland.Web " project, add " Connection.config " file and complete it according to the template:
<connectionStrings>
<add name="Default" connectionString="" providerName="System.Data.SqlClient" />
</connectionStrings>
- In the " ConnectionString = " value, enter the connection to the MSSQL database.
- Right -click on the solution in the solution explorer and the drop -down list select " Restore NUGET packages ".
- Right -click on the " Czuczenland.Webapi " project and from the drop -down list select " Release the project ".
Repeat the action for projects:
" Czuczenland.web "
" Czuczenland.entyFramework "
" Czuczenland.core "
" Czuczenland.Application "
" Czuczenland.migrator "
" Czuczenland.tests " - Right -click on the solution in the solution explorer and the drop -down list, select " Charging all projects ".
- Right -click on the " Czuczenland.Web " project from the drop -down list select " Set as a start project ".
- On the upper menu bar, select " Tools ", and then from the drop -down list hover for " NUGET Package Manager " from the next list, select " Package Manager console ".
- In the packet manager console for the " default project " field from the drop -down list, select " Czuczenland.entyFramework ".
- In the packaging manager console, enter the " Update-Database " command and press ENTER.
- Start the application (Ctrl+F5).
Jetbrains Rider
- In the " Czuczenland.web " project, add " settings.config " file and complete it according to the template:
<appSettings>
<add key="webpages:Version" value="3.0.0.0" />
<add key="webpages:Enabled" value="false" />
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="AdminPassword" value=""/>
</appSettings>
- In the " adminpassword " key value, enter your password for the admin host.
- In the " Czuczenland.Web " project, add " Connection.config " file and complete it according to the template:
<connectionStrings>
<add name="Default" connectionString="" providerName="System.Data.SqlClient" />
</connectionStrings>
- In the " ConnectionString = " value, enter the connection to the MSSQL database.
- In the explorer, right -click on the project " Czuczenland.entyFramework ", from the drop -down list, hung on " Entityframework " and from the next list select " Update Database ".
- In the window that was displayed, select " Use Connection String " in the bottom section.
- In the " Connection String " field, enter information about the database connection.
- In the " Connection provider " field, enter the value " S " and select " System.data.sqlclient ".
- Confirm with the OK button.
- In the upper right corner in choosing the configuration, change the value " Czuczenland.migrator " to " Czuczenland.Web - iis Express ".
- Start the application (Ctrl+F5).
Creating a district (optional)
Attention! It is recommended to do this on the server because it can take a lot of time locally.
- Log in to the application to the Admin Host account by entering the " nick " value " admin " in the field, and in the " password " field, which was previously set in the file " settings.config " in the project " Czuczenland.web " for the key " Adminpassword ".
- Go to the " Configuration Panel " menu.
- Click the " cloner " button.
- In the window that was displayed, click " Konnej " in the " Clone from the application folder " section.
- After completing the creation of the district, the new tab will display information about the created district and its guardian.
- Save the login details of the district guardian, for example in a notebook.
- Return to the tab with the district cloning interface and close it.
- Under the header " search " from the drop -down list, select " district ".
- Click " Edit " for the district record called " Chillout ".
- For the field " is defined " change the value from " no " to " yes " and write the change.
- Now you can start the game by logging in to the guardian's account of the created district or registering as a new user. The administrator cannot play the game " Plantation ".
Additional information
The application uses the MSSQL database, whose structure was presented here.
As part of the project, a tool for generating code documentation, Doxygen - documentation was used.