aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorToineSiebelink <toine.siebelink@est.tech>2020-11-05 09:14:25 +0000
committerToineSiebelink <toine.siebelink@est.tech>2020-11-05 09:16:50 +0000
commitffc97e085589fae2e020705910b312d1307627e3 (patch)
tree4083ed9e318bf9d8847f0ef51f43a3fae8972faf /README.md
parent018c93bf8f708ed5a7ab0db939bc9f4e852a1ecc (diff)
Verify new CPS project setup
- Commit code through Nordix - Check if CI jobs are triggered JIRA: https://jira.onap.org/browse/CCSDK-2953 Issue-ID: CCSDK-2953 Change-Id: Ifef6b8cb31c7e1e1e5475d46a697baa051fe6d61 Signed-off-by: ToineSiebelink <toine.siebelink@est.tech>
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 000000000..d1bf49d8c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,34 @@
+# Configuration Persistence Service
+
+This folder contains all files for
+[Configuration Persistence Service](https://wiki.onap.org/pages/viewpage.action?pageId=81406119).
+
+The code here is related to CPS POC, then it must be kept self contained in this cps folder to prevent any impact on
+current ccsdk components and to be ready to be moved in its own repo once CPS becomes a standalone project.
+
+
+## Running Locally
+
+* Run a postgres container instance and create `cpsdb' database:
+
+```
+CREATE USER cps WITH PASSWORD 'cps';
+CREATE DATABASE cpsdb OWNER cps;
+```
+
+* Build (from cps root folder)
+
+```bash
+mvn clean package
+```
+
+* Run (from cps root folder)
+
+```bash
+java -DDB_HOST=localhost -DDB_USERNAME=cps -DDB_PASSWORD=cps -jar cps-rest/target/cps-rest-0.0.1-SNAPSHOT.jar
+```
+
+* Browse
+ * [Swagger UI](http://localhost:8080/swagger-ui/index.html)
+ * OpenAPI Specification in [JSON](http://localhost:8080/api/cps/openapi.json)
+ or [YAML](http://localhost:8080/api/cps/openapi.yaml) format