Giter VIP home page Giter VIP logo

cloud-sample-spaceflight-node's Introduction

Scenario:

SPICY (Space Itinerary Company) is the most popular travel technology company in our milky way. Owing to the increasing demand in space travel, SPICY is now building a website where it offers users from all planets to login and book their next space flight. You, as a part of the software engineering team of SPICY, have chosen SAP Cloud Platform to build this website.

Click here for the presentation.

SPICY

In this exercise, we will learn to set up our local development environment and create a new node.js project. This will be our codebase to create the Space travel web application.

In this exercise, we will understand the data model of the base space-flight project. Using the base model, we create tables in a local SQLite database and load data from CSV files. We will further extend the data model to include payment information for space travel bookings.

In this exercise, we will learn to expose our data model entities as OData services. We will also include custom logic to limit the number of passengers in each space craft.

In this exercise, we will import the code into SAP Web IDE and build a User Interface based on SAP UI5 so that users can create a booking from the UI of our app.

In this exercise, we will deploy the application to SAP Cloud Platform Cloud Foundry environment. The multiple components of the app are visualized and monitored from SAP Cloud Platform Cockpit.

Requirements

For SAP TechEd 2018

SAP TechEd will provide you with a full environment to develop this sample application. The instructions below are only needed if you wish to run the application in your own account on SAP Cloud Platform.

Development in SAP Cloud Platform Web IDE

SAP Web IDE Full-Stack access is needed. For more information, see Open SAP Web IDE.

Read the getting started tutorial to learn more about working with SAP Cloud Platform Web IDE.

A HANA instance is needed in your account, so that you can deploy the persistence assets.

Now clone your fork of this repository (File -> Git -> Clone Repository).

Develop, Build, Deploy

To build and deploy your application or modify it and redeploy, use any of the following options:

  • Build and deploy the DB module by choosing Build from the context menu of the db folder.

  • Build and deploy the Node.js service by choosing Run -> Run as -> Node.js application from the context menu of the srv folder. To test the service, click the URL displayed in the Run Console. Use the endpoint of the service clouds.products.CatalogService to call $metadata or CRUD requests.

  • Test the UI by choosing Run -> Run as -> Web Application from the context menu of the ui folder.

Known Issues

None

Support

This project is provided "as-is": there is no guarantee that raised issues will be answered or addressed in future releases.

License

Copyright (c) 2018 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the SAP Sample Code License except as noted otherwise in the LICENSE file.

cloud-sample-spaceflight-node's People

Contributors

harinigunabalan avatar elenaoresharova avatar scheererj avatar chrispaulus avatar chgeo avatar xtough avatar

Stargazers

Pascal Wasem avatar

Watchers

James Cloos avatar Pascal Wasem 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.