Test the latest running deployment: https://empathygame.cfapps.eu10.hana.ondemand.com/
- Install Cloud Foundry CLI.
- Install MultiApps CLI plugin for CF.
- Install Cloud MTA Build Tool.
- Log on to our Cloud Foundry Environment through the CLI Source:
cf login
- API endpoint: https://api.cf.eu10.hana.ondemand.com (taken from our Subaccount overview page)
- Email:
<your SAP mail address>
- Password:
<your SSO SAP password>
Note: Does not yet work. It seems as the MTA build tool currently does not have a Python builder.
- Note: Only do this, if the GitHub repo here does not already contain a
requirements.txt
. Create arequirements.txt
from thePipfile
throughpipenv run pip freeze > requirements.txt
. - Download all the requirements to a
vendor
folder throughpip download -d vendor -r requirements.txt --platform manylinux1_x86_64 --only-binary=:all:
Note: Therequirements.txt
above might contain unrequired dependencies that lead to errors when downloading. Those dependencies can be removed with no harm. - Create the
mtar
file by executingmbt build
. - Deploy the
mtar
file to HCP throughcf deploy mta_archives/...mtar
.
- Note: Only do this, if the GitHub repo here does not already contain a
requirements.txt
. Create arequirements.txt
from thePipfile
through pipenv lock --keep-outdated -d -r > requirements.txt`. - Download all the requirements to a
vendor
folder throughpip download -d vendor -r requirements.txt --platform manylinux1_x86_64 --only-binary=:all:
Note: Therequirements.txt
above might contain unrequired dependencies that lead to errors when downloading. Those dependencies can be removed with no harm. - Run
cf push
which uses themanifest.yml
,runtime.txt
and therequirements.txt
. Notecf push
uploads all files from the directory where it is executed from. It inspects.cfignore
for files that are excluded from uploading.
- Create the
mtar
file by executingmbt build
. - Deploy the
mtar
file to HCP throughcf deploy mta_archives/...mtar
.
If you are developing on a Windows machine and have installed all dependencies, please use script run_windows_local.ps1
to start you local development environment.
- Create new Python project with your favourite IDE.
- Use Pipenv for dependency management.
- Clone the Github repo https://github.com/simachri/empathygame.
- Run
pipenv install
to install the dependencies locally. - If you are using Windows and for example Powershell you need to set the environment variable:
# Set environment variable
$Env:PORT = "8080"
# Start python server
py ./api/main.py
For the first time, add @sap
to you npm and install all dependencies:
# Add @sap to your npm
npm config set @sap:registry https://npm.sap.com // Only the first time
# Install all dependencies
npm install
After preparation you can start the application router by:
# Go to web folder
cd web
# Start development server
npm run dev
The service is reachable on localhost:3000 where the api is accessable on localhost:3000/api and the ui is accessable on localhost:3000/ui.
All findings during this projects are documented. Please visit
Topic | Documentation |
---|---|
UI5 | UI5 Knowledge |