GithubHelp home page GithubHelp logo

isabella232 / aks-contoso-ships-sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure-samples/aks-contoso-ships-sample

0.0 0.0 0.0 194 KB

Sample application for the "Managing Application State with AKS and CosmosDB" Learn module

License: MIT License

Dockerfile 0.86% JavaScript 9.26% TypeScript 53.11% Shell 0.10% HTML 1.09% Vue 35.57%

aks-contoso-ships-sample's Introduction

Contoso Ship Manager - Demo Application

This is a short sample code for Microsoft Learn

Features

This project is a simple harbor control application to track ships. It consists on a front-end and a back-end part.

Getting Started

Prerequisites

  • Node.js version 8 for the Frontend
  • Node.js version 12 or later for the backend
  • Docker and Docker Compose
  • MongoDB

Installation & Quickstart

Running stand alone

The application is divided into two main directories: frontend and backend each one with their respective codes and infrastructure files.

Front End: Created using Vim. Just go into the directory, type npm install to install all dependencies and then npm run serve. You can also build the image from the Dockerfile in the same directory

Front End: Created with TypeScript. Just go into the directory, type npm install to install all dependencies and then npm run build:start to run the app or npm run start:debug to start in debug mode (tsc watch and logging). You can also build the image from the Dockerfile in the same directory

Application hosted image

There's a hosted image of this application available at the MCR (Microsoft Container Registry) in the following address: mcr.microsoft.com/mslearn/samples/contoso-ship-manager

You can pull this image using docker pull and run it locally using docker run.

There are two tags available for different parts of the image:

  • backend: Has only the backend of the application.
  • frontend: Contains the frontend part of the application.

You'll still need a MongoDB database to run those images

Environment Variables

The backend portion requires environment variables to run, those are:

  • DATABASE_MONGODB_URI: URI of the MongoDB database
  • DATABASE_MONGODB_DBNAME: MongoDB database name

aks-contoso-ships-sample's People

Contributors

khaosdoctor avatar microsoft-github-operations[bot] avatar microsoftopensource 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.