Move cps files to root dir
[cps.git] / README.md
1 # Configuration Persistence Service
2
3 This folder contains all files for
4 [Configuration Persistence Service](https://wiki.onap.org/pages/viewpage.action?pageId=81406119).
5
6 The code here is related to CPS POC, then it must be kept self contained in this cps folder to prevent any impact on
7 current ccsdk components and to be ready to be moved in its own repo once CPS becomes a standalone project.
8
9
10 ## Running Locally
11
12 * Run a postgres container instance and create `cpsdb' database:
13
14 ```
15 CREATE USER cps WITH PASSWORD 'cps';
16 CREATE DATABASE cpsdb OWNER cps;
17 ```
18
19 * Build (from cps root folder)
20
21 ```bash
22 mvn clean package
23 ```
24
25 * Run (from cps root folder)
26
27 ```bash
28 java -DDB_HOST=localhost -DDB_USERNAME=cps -DDB_PASSWORD=cps -jar cps-rest/target/cps-rest-0.0.1-SNAPSHOT.jar
29 ```
30
31 * Browse
32   * [Swagger UI](http://localhost:8080/api/cps/swagger-ui/index.html)
33   * [Api Documentation](http://localhost:8080/api/cps/v3/api-docs)