# cap-study **Repository Path**: luckyprogrammer/cap-study ## Basic Information - **Project Name**: cap-study - **Description**: SAP CAP 学习和研究示例 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-03-18 - **Last Updated**: 2023-05-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # cap-study Sample application to illustrate how to implement the file upload functions follow the guideline from [cap media-data](https://cap.cloud.sap/docs/guides/media-data) More detail information can be found from the []() ## run it locally **In the package.json, when run locally it will use `dummy` for the authentication. You can do small adjust to use the real xsuaa** * in the root directory, do some prepration and start the service 1. `npm i` 2. `cds deploy --to sqlite` to deploy it to sqlite 3. `.\start-cds.bat` to start the cds. It will set the environment SRV_URL to `http://localhost:4004` 4. You can check the service in http://localhost:4004` * go to the `app` directory to start the app-router 1. `npm i` 2. Copy the content from `xs-app-local.json` to `xs-app.json`. **It will disable the authentication for app router** 3. `npm start` to start the app-router ## run it on CF 1. `mbt build` 2. go to the mta_archives, run `cf deploly xx` to deploy to CF 3. in btp cockpit, grant user the role collection `cap-study-admin` 4. Click the urls of app-router to test the function