Welcome to the repository containing the public web site of the SmartHotel360.
Once downloaded you can open the SmartHotel360.PublicWebSite.sln
file to open the solution. This solution contains two projects:
- The SmartHotel360.PublicWeb project: A asp.net core2 website which is a SPA webapp developed using React+Redux and server-side rendering.
- The PetCheckerFunction project: An Azure function used for the "bring your per scenario".
Just set SmartHotel360.PublicWeb
as startup project. Then hit F5, and the web should run. The web is configured to use the public endpoints for the backend, so you don't need to run the backend locally.
The file appsettings.Development.json
contains the options of the web site. By default following options are used:
SettingsUrl
: Url of the configuration endpoint. By default it uses the public endpoint service. Only change if you are running your own backend services.AzureFunction
: Url of the azure function used to peek tweets in the home page. Again, by default it uses the public environment.FakeAuth
: Contains data to "simulate" the login process. Data isName
(name of the user),UserId
(id of the user),PicUrl
(url of the user avatar).
If
FakeAuth
is not the PublicWeb site uses an Azure Active Directory B2C to enable the logins. Please read "Enabling B2C logins" if you want to use B2C logins.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.