Code Monkey home page Code Monkey logo

sitregcapm's Introduction

SAP Event Registration app backend

This is the successor of SITreg. Now implemented using the SAP Cloud Application Programming Model. Check out the roadmap for the next steps.

Get Started

Development Environment

We recommend using Visual Studio Code as local development environment. To get the language support for the CDS objects you must manually install the corresponding extension for Visual Studio Code. To install this extension, proceed as follows

  1. Download the vsix file from SAP Development Tools -> Cloud -> CDS Language Support for Visual Studio Code
  2. Install the downloaded vsix file in Visual Studio Code using command Install from VSIX...

NPM Registry

The NPM packages for CDS are not part of the default NPM registry. As a consequence, you must configure your registry to lookup the packages in the SAP NPM registry. Enter the following command:

npm set @sap:registry=https://npm.sap.com

CDS Command Line Tools

Install the CDS command line tools

npm i -g @sap/cds

Build the Project

To build the project, walk through the following steps

  1. Download or clone the repository.
  2. Navigate to the folder of your local repository
  3. Execute the command npm installto install the relevant NPM packages
  4. Execute the command npm run build to trigger a clean build of the project
  5. Execute the command npm run deploy to deploy in the local sqlite database
  6. Execute the command npm start to startup the project locally

You can now access the services via

 http://localhost:4004

Initialize the Local Database

Run the following command to Initialize your local SQLite DB:

cds deploy --to sqlite:db/sitregcapm.db

Do not forget to repeat this step to initialize the local database whenever you changed the datamodel

Setup XSUAA

To be able to use authenticaiton and the defined scopes (authorization) a XSUAA must be set up. First compile the CDS to xs-security.json:

mkdir gen
cds srv/ --to xsuaa,json > gen/xs-security.json

now deploy that to your SAP CP Cloud Foundry trial:

cf login
cf create-service xsuaa application sitregcapm-uaa -c gen/xs-security.json

then create the service-key:

cf create-service-key sitregcapm-uaa sitregcapm-uaa-key && cf service-key sitregcapm-uaa sitregcapm-uaa-key
cf push sitregcapm --no-start --no-manifest --random-route
cf bind-service sitregcapm sitregcapm-uaa
cf restage sitregcapm

Recommended Extensions

Local execution makes use of SQLite3 as database. To get an insight into the database from visual studio code we recommend to install the SQLite Extension from the Visual Studio Marketplace

Communication

Please join the SAP Mentors & Fiends Slack Workgroup in the channel #sitreg.

Additional Resources

Here are some additional resources for the SAP Cloud Application Programming Model (CAPM):

sitregcapm's People

Contributors

gregorwolf avatar nabheetcloud avatar balbinosoares avatar thulium3 avatar lechnerc77 avatar fredverheul avatar mattiastrr 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.