Giter Site home page Giter Site logo

microsoft / smarthotel360-couponmanagement Goto Github PK

View Code? Open in Web Editor NEW
4.0 9.0 111.0 3.84 MB

SmartHotel360 manage with this app the coupons they provide to their guests.

License: MIT License

Dockerfile 0.98% Batchfile 0.42% Java 44.46% CSS 28.01% JavaScript 6.66% HTML 14.19% HCL 5.30%

smarthotel360-couponmanagement's Introduction

This project is retired, archived, and no longer supported. You are welcome to continue to use and fork the repository.

For the latest sample references visit: https://aka.ms/tailwindtraders & https://aka.ms/rpsls

Smart hotel Coupon web application using Spring Boot and MySQL

Smart Hotel Coupon web application using Spring Boot with the following options:

  • Spring JPA and MySQL for data persistence
  • Thymeleaf template for the rendering.

To build and run the sample from a fresh clone of this repo:

Configure MySQL

  1. Create a database "hotel_coupon" in your MySQL instance. Please make sure that your MySQL version is 5.7.
  2. Update the application.properties file in the src/main/resources folder with the URL, username and password for your MySQL instance. The table schema for the hotel coupon objects will be created for you in the database.

Build and run the sample

  1. mvnw spring-boot:run
  2. Open a web browser to http://localhost:8080

As you search and review the guests coupons in the app you can verify the search result in the database through the MySQL console using simple statements like select * from guest.

Deploy Azure Components with ARM Template

GitHub Authorize

  1. Generate Token

    • Open https://github.com/settings/tokens in your web browser.

    • Sign into your GitHub account where you forked this repository.

    • Click Generate Token.

    • Enter a value in the Token description text box.

    • Select the following scopes (your selections should match the screenshot below):

      • repo (all) -> repo:status, repo_deployment, public_repo
      • admin:repo_hook -> read:repo_hook

    • Click Generate token.

    • Copy the token.

  2. Add the GitHub Token to Azure in the Azure Resource Explorer

Deploy Azure Components

  1. Fork this repository to your GitHub account.

  2. Click the Deploy to Azure Button:

    Deploy to Azure

  3. Fill in the values on the deployment page:

    BASICS:

    • Subscription: choose one of you subscriptions.
    • Resource group: it is recommend to create a new resource group.
    • Location: choose a location.

    SETTINGS:

    • Web App Name: the name of the web app. It should be unique. It is recommended to use a name like hotel-coupon-mgmt-<YourName>-<Date>, for example: hotel-coupon-mgmt-bob-180129

    • MySQL Admin Login Name: The admin login name of the MySQL server. Keep the default value or use the one you prefer.

      Note: Please do not use 'azure_superuser', 'admin', 'administrator', 'root', 'guest' or 'public'.

    • MySQL Admin Login Password: The admin login password of the MySQL server. Please use a strong password, for example P@ssw0rd2o18!.

    • Source Code Repository: use the URL of the repository you just created -https://github.com/<YourAccount>/Huddle

    • Source Code Branch: master

    • Source code Manual Integration: false

    TERMS AND CONDITIONS:

    • Check I agree to the terms and conditions stated above.
  4. Click Purchase.

  5. Visit the created hotel coupon web site at http://[Web App Name].azurewebsites.net/

  6. Login with username/password as [email protected]/1234.

smarthotel360-couponmanagement's People

Contributors

microsoftopensource avatar msftgits avatar ogcanviz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.