Git Product home page Git Product logo

cloud-cap-samples's Introduction

Welcome to cap/samples

Find here a collection of samples for the SAP Cloud Application Programming Model organized in a simplistic monorepo setup. โ†’ See Overview of contained samples

REUSE status

Preliminaries

  1. Install @sap/cds-dk globally as documented in capire
    npm i -g @sap/cds-dk
  2. Optional: Use Visual Studio Code

Download

Clone this repo as shown below, if you have git installed, otherwise download as zip file.

git clone https://github.com/sap-samples/cloud-cap-samples samples
cd samples

Setup

In the samples folder run:

npm install

Run

With that you're ready to run the samples, for example:

cds watch bookshop

After that open this link in your browser: http://localhost:4004

Testing

Run the provided tests with jest or mocha, for example:

npx jest

While mocha is a bit smaller and faster, jest runs tests in parallel and isolation, which allows to run all tests.

Serve npm

We've simple npm registry mock included which allows you to do an npm install @capire/<package> anywhere locally. Use it as follows:

  1. Start the @capire registry:
npm run registry

While running this will have @capire:registry=http://localhost:4444 set with npmrc.

  1. Install one of the @capire packages wherever you like, e.g.:
npm add @capire/common @capire/bookshop

Get Support

Check out the documentation at https://cap.cloud.sap.
In case you have a question, find a bug, or otherwise need support, please use our community.

License

Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.

cloud-cap-samples's People

Contributors

btbernard avatar bugwelle avatar cherians avatar chgeo avatar danjoa avatar david-kunz avatar elenaoresharova avatar gregorwolf avatar gwendalmoreau avatar hm23 avatar ianquigley-sap avatar iwonahahn avatar johannes-vogel avatar lakshmicr avatar manuelb avatar pianocktail avatar renejeglinsky avatar vkozyura avatar vobu 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.