Skip to content

rlhagen/node-pivotal-cloud-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Node GemFire Sample Application for PCF

References:

It's a "Greeting" app. Store a greeting with an id, get a greeting by id.

Create Region in PCC via gfsh

Refer to https://docs.pivotal.io/p-cloud-cache/1-4/accessing-instance.html

gfsh> connect --use-http=true --url=https://cloudcache-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx.run.pcfone.io/gemfire/v1 --user=cluster_operator_XXXX --password=XXXXX
gfsh> create region --name=default --type=PARTITION --entry-time-to-live-expiration=3600 --enable-statistics= true

Build and Deploy

npm run build && pushd dist && cf push node-application && popd

Usage

The root (home page) has links to push/get a sample value.

The main endpoint is at http://server/api/greeting

Curl Example

curl -X GET 'https://gemfire-node-sample.apps.pcfone.io/api/greeting/foo?message=SomeMessage'  
curl -X GET 'https://gemfire-node-sample.apps.pcfone.io/api/greeting/foo'
curl -X GET 'https://gemfire-node-sample.apps.pcfone.io/api/session/destroy'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •