Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

mikezaschka/cap-devtoberfest

Repository files navigation

⚠️

This example application repository is in 🌇-mode since with there is now an official CAP PostgreSQL adapter available that should be used in favor of cds-pg and cds-dbm.

⚠️

Example project showcasing how to use SAP CAP on PostgreSQL

Please read the following blog post for advanced instructions:

Run the app locally

  • Run from a terminal: docker-compose up
  • Run from a terminal npm i
  • Create a default-env.json file in the root of the project and insert the following content:
{
    "VCAP_SERVICES": {
      "postgres": [
        {
          "name": "postgres",
          "label": "postgres",
          "tags": [
            "postgres",
            "database",
            "plain"
          ],
          "credentials": {
            "host": "localhost",
            "port": 5432,
            "database": "devtoberfest",
            "user": "postgres",
            "password": "postgres",
            "schema": "public"
          }
        }
      ]
    }
  }
  • Run from a terminal npx cds-dbm deploy -create-db --load-via delta
  • Run from a terminal cds serve
  • Open browser and go to https://localhost:4004

Deploy to SAP Cloud Platform Cloud Foundry

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published