5
HOW TO CREATE AN IDENTIFEYE AR GAME TECH SPECS For students in age group: 8-14 2013-1-GR1-LEO05-13907 Preparations for the copying of the game Preparations on PC/Laptops (for Windows): Create an Azure account http://azure.microsoft.com/ or get access to an existing account Download and install Visual Studio (2013 http://www.dobreprogramy.pl/Visual-Studio-Ultimate,Program,Windows,12106.html ; or 2015 - https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx ). Attention! Depending on the software version you can be asked to install additional software. Download and install Silverlight 4 SDK http://www.microsoft.com/en-us/download/details.aspx?id=7335 Download and install NuGet http://www.nuget.org/ Download and install Notepad++ https://notepad-plus-plus.org/download/ Download and install Silverlight 5: http://www.microsoft.com/silverlight/ Download and install an FTP client like: Total Commander http://www.ghisler.com/download.htm or FileZilla https://filezilla- project.org/download.php?type=client Online preparations (for an empty game, without any data like: questions, augmentations, texts): Go to http://manage.windowsazure.com/ Log in with your Azure credentials Click (on the bottom of the screen): NEW -> COMPUTE -> WEB APP -> QUICK CREATE Choose a URL, for instance: test-ezzev.azurewebsites.net Choose an app service plan

How to create an identifeye ar game – tech specs

Embed Size (px)

Citation preview

Page 1: How to create an identifeye ar game – tech specs

HOW TO CREATE AN IDENTIFEYE AR GAME – TECH SPECS For students in age group: 8-14

2013-1-GR1-LEO05-13907

Preparations for the copying of the game Preparations on PC/Laptops (for Windows):

Create an Azure account http://azure.microsoft.com/ or get access to an existing account

Download and install Visual Studio (2013 – http://www.dobreprogramy.pl/Visual-Studio-Ultimate,Program,Windows,12106.html; or 2015 - https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx ). Attention! Depending on the software version you can be asked to install additional software.

Download and install Silverlight 4 SDK http://www.microsoft.com/en-us/download/details.aspx?id=7335

Download and install NuGet http://www.nuget.org/

Download and install Notepad++ https://notepad-plus-plus.org/download/

Download and install Silverlight 5: http://www.microsoft.com/silverlight/

Download and install an FTP client like: Total Commander http://www.ghisler.com/download.htm or FileZilla https://filezilla-project.org/download.php?type=client

Online preparations (for an empty game, without any data like: questions, augmentations, texts):

Go to http://manage.windowsazure.com/

Log in with your Azure credentials

Click (on the bottom of the screen): NEW -> COMPUTE -> WEB APP -> QUICK CREATE

Choose a URL, for instance: test-ezzev.azurewebsites.net

Choose an app service plan

Page 2: How to create an identifeye ar game – tech specs

Click CREATE WEB APP

In a few moments your web app will be created

Go to WEB SITES (by choosing in the toolbar on the left)

Select your web app, i.e: test-ezzev

Go to DASHBOARD

Click on DOWNLOAD THE PUBLISH PROFILE

Save the profile on your disk, please remember where you saved it.

Click (on the bottom of the screen): NEW -> DATA SERVICES -> SQL DATABASE -> CUSTOM CREATE

Choose the name of the database, i.e.: TEST

Choose a subscription (your subscription will be chosen by default), choose the BASIC service tier, choose your server and click COMPLETE

In few moments your database will be created Online preparations (for a copy of an existing game, with all data like: questions, augmentations, texts):

Go to http://manage.windowsazure.com/

Log in with your Azure credentials

Click (on the bottom of the screen): NEW -> COMPUTE -> WEB APP -> QUICK CREATE

Choose a URL, for instance: test2-ezzev.azurewebsites.net

Choose an app service plan

Click CREATE WEB APP

In a few moments your web app will be created

Go to WEB SITES (by choosing in toolbar on the left)

Select your web app, i.e: test-ezzev

Go to DASHBOARD

Click on DOWNLOAD THE PUBLISH PROFILE

Save the profile on your disk, please remember where you saved it.

Go to SQL DATABASES (by choosing in toolbar on the left)

Chose an existing database with the game, i.e. ID-EYE

Click COPY (on the bottom of the screen)

Choose the name for the copy of the database, i.e. TEST2

Choose a server and click COMPLETE

In few moments your database will be created

Page 3: How to create an identifeye ar game – tech specs

Copying of the game via FTP:

Go to http://manage.windowsazure.com/

Go to WEB SITES (by choosing in toolbar on the left)

Select your web app with the existing game, i.e. IDENTIFEYE

Go to DASHBOARD

Click on DOWNLOAD THE PUBLISH PROFILE

Save the profile on your disk, please remember where you saved it.

Open the profile via regular notepad or Notepad++

Look in the file for <publishProfile> for FTP (i.e. <publishProfile profileName="adt-ezzev - FTP">) and copy to a different document:

publishUrl (i.e.: ftp://waws-prod-am2-031.ftp.azurewebsites.windows.net/site/wwwroot )

userName (i.e.: adt-ezzev\$adt-ezzev)

userPWD (i.e.: tixHYirlZwBLXBclupBD6SLHKRXwTozw9pPjmEAoaRnLRN3lji1mifwpprG4)

Open your ftp client

Create a new connection using the url without "ftp://" and "/site/wwwroot) so only waws-prod-am2-031.ftp.azurewebsites.windows.net and provide your user name and password

After you are logged in, copy all folders and data to your hard drive.

After you are done, close the connection.

Open the folder with downloaded files, go to: site\wwwroot\ and open the WEB.CONFIG file with the Notepad++

Go to the section <connectionStrings> and find the line starting with "<add name", i.e. <add name="IDentifEYE" connectionString="Data Source=tcp:lpqaf9z5zy.database.windows.net,1433;Initial Catalog=IDENTIFEYE;User ID=identifeye@lpqaf9z5zy;Password=!d3nt1f3y3" providerName="System.Data.SqlClient" />

Change the Initial Catalog name to the name of your database, i.e. TEST. So the string should look like <add name="IDentifEYE" connectionString="Data Source=tcp:lpqaf9z5zy.database.windows.net,1433;Initial Catalog=TEST;User ID=identifeye@lpqaf9z5zy;Password=!d3nt1f3y3" providerName="System.Data.SqlClient" />

Save the changes

Now go back to http://manage.windowsazure.com/

Go to WEB SITES (by choosing in toolbar on the left)

Select your web app created for the copy of the game,i.e. test-ezzev

Go to DASHBOARD

Click on DOWNLOAD THE PUBLISH PROFILE

Page 4: How to create an identifeye ar game – tech specs

Save the profile on your disk, please remember where you saved it.

Open the profile via regular notepad or Notepad++

Look in the file for and copy to a different document strings of characters for:

publishUrl (i.e.: ftp://waws-prod-am2-031.ftp.azurewebsites.windows.net/site/wwwroot ) (Attention. It should be the same as used before)

userName (i.e.: adt-ezzev\$adt-ezzev)

userPWD (i.e.: tixHYirlZwBLXBclupBD6SLHKRXwTozw9pPjmEAoaRnLRN3lji1mifwpprG4)

Open your ftp client

Create a new connection using the url without "ftp://" and "/site/wwwroot) so only waws-prod-am2-031.ftp.azurewebsites.windows.net and provided user name and password

After you are logged in, upload from your disk all downloaded files to opened space

When the upload is complete, you can close the ftp client.

Now go to the game's url (i.e. test-ezzev.azurewebsites.net) and test your game Copying the game via Visual Studio:

1. Open the developer file of the project 2. If you will be asked, please log into your Azure account 3. If the file already has built a solution, click on it with right mouse button and choose PUBLISH SOLUTION.If not, first click BUILD SOLUTION,

from the BUILD menu 4. When the publish window will open, click IMPORT in the PROFILE section 5. Choose the downloaded publish profile 6. When the CONNECTION section will open, you will see all login data extracted from the file. 7. Click NEXT 8. In the SETTINGS section choose a database created for this game 9. Click PUBLISH 10. The game will be uploaded to the site 11. When the publishing will finish, your game url will be opened by the browser

Adding access to game's CMS:

1. Locate the WEB.CONFIG file (either on an FTP server, or a copy on your computer) 2. Go to section <authentication> 3. Under <credentials> add new login and new password, i.e. <user name="[email protected]" password="43v3r" />

Page 5: How to create an identifeye ar game – tech specs

4. Save the file 5. If it's a local copy, log onto the FTP server, and replace it under "/site/wwwroot" 6. Reload the CMS page in your web browser

Useful links:

http://blogs.msdn.com/b/kaushal/archive/2014/08/02/microsoft-azure-web-site-connect-to-your-site-via-ftp-and-upload-download-files.aspx#comments

http://blogs.technet.com/b/cbernier/archive/2013/09/24/deploy-your-web-application-to-windows-azure-from-with-visual-studio.aspx

http://www.asp.net/mvc/overview/getting-started/database-first-development/publish-to-azure