Giter Site home page Giter Site logo

spboyer / smarthotel360-containersforlocaldev Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 7.0 3.63 MB

Demonstrate how containers can be used to package up an app and a database for consistent functionality for local dev and production deployment.

License: MIT License

Shell 5.46% Dockerfile 2.32% C# 32.78% CSS 11.39% JavaScript 1.36% TSQL 1.76% HTML 44.92%

smarthotel360-containersforlocaldev's Introduction

SmartHotel360

During Connect(); 2017 event this year we presented beautiful app demos using Xamarin and many features of Azure. For //build/ 2018's keynote, we updated some components of the back-end API code to support Azure Kubernetes Service (AKS). This repository contains the setup instructions and sample code needed to repeat the AKS and Azure Dev Spaces demo from //build/ 2018.

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 - How Containers Enable Local Development

This example shows how to use SQL Server on Linux in a Docker container with and ASP.NET Core web application to display test data.

The test data is loaded into SQL Server using the bcp (Bulk Load Process) command line utility from an Excel generated CSV file.

/opt/mssql-tools/bin/bcp Hotels in data/Hotels.csv -S 0.0.0.0 -U sa -P $SA_PASSWORD -d Hotels -F2 -c -t ',' -e data/err.log

SQL Commands are scripted and executing to create and modify the schema and table structures before and after the data import to prepare the database for the application to run.

All of these processes happen by using Docker Compose to build and run the containers

# shortcut bash file
cd src
# run ./build.sh
./build.sh

or

docker-compose build

docker-compose up

Browse to http://localhost:5000

Home Page - ASP.NET Core 2.2 Razor Page Application

homepage image

Hotels Page

hotes page

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/?WT.mc_id=dotnet-0000-shboyer.

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-containersforlocaldev's People

Contributors

azureadvocatebit avatar bradygmsft avatar chrfrenning avatar dsanchezcr avatar microsoftopensource avatar msftgits avatar spboyer avatar

Stargazers

 avatar  avatar

Watchers

 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.