Git Product home page Git Product logo

smarthotel360-public-web's Introduction

SmartHotel360

We are happy to announce the release of SmartHotel360. This release intends to share a simplified version of SmartHotel360 reference sample apps used at Connect(); 2017 Keynotes. If you missed it, you can watch Scott Guthrie’s Keynote: Journey to the Intelligent Cloud in Channel 9.

SmartHotel360 Repos

For this reference app scenario, we built several consumer and line-of-business apps and an Azure backend. You can find all SmartHotel360 repos in the following locations:

SmartHotel360 - Public Web

Welcome to the repository containing the public web site of the SmartHotel360. SmartHotel360 has multiple apps that share a common Azure backend, including a public website where hotel guests can book a room, smart conference rooms, and even include their accompanying family travelers and their pets! The site was built using ASP.NET Core 2.0.

Getting Started

Once downloaded you can open the SmartHotel360.PublicWebSite.sln file to open the solution in Visual Studio 2017 15.5 or higher. This solution contains two projects:

  • The SmartHotel360.PublicWeb project: An ASP.NET Core 2.0 website which is a SPA web app developed using React+Redux and server-side rendering.
  • The PetCheckerFunction project: An Azure Function used to analyze photos of pets using the Congnitive Services Vision API and Azure Cosmos DB.

Screens

Running the web

Set SmartHotel360.PublicWeb as startup project, then hit F5 to start debugging. The web is configured to use the public endpoints for the backend, so you don't need to run the backend locally.

Configuring the web

The file appsettings.Development.json contains the settings 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.
  • FakeAuth: Contains data to "simulate" the login process. Data is Name (name of the user), UserId (id of the user), PicUrl (url of the user avatar).

If FakeAuth is not set 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.

If you want to deploy this application to your own Azure subscription, see this setup guide for instructions.

Demo Scripts

There is a detailed step-by-step demo script in the demoscripts folder of this repo that you can use in your own presentations. In order to perform the demos, you will need to deploy the application resources to Azure first. See this setup guide on how to do that.

Contributing

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.

smarthotel360-public-web's People

Contributors

bethmassi avatar bradygaster avatar bradygmsft avatar ckgrafico avatar dsrodenas avatar eiximenis avatar erikaehrli avatar kunalbabre avatar microsoftopensource avatar msftgits avatar roopeshnair avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.