deprecated-oc-catalog/README.md

37 lines
833 B
Markdown
Raw Normal View History

2023-03-03 14:43:11 +01:00
# OC Catalog
2023-03-03 11:49:07 +01:00
2023-10-18 11:01:41 +02:00
## OpenCloud Catalog API
2023-03-03 14:43:11 +01:00
2023-10-18 11:01:41 +02:00
Uses the Beego framework
To install the Beego bee command :
go install github.com/beego/bee/v2@master
To build and run :
go mod tidy
bee run -downdoc=true -gendoc=true
2023-03-03 14:43:11 +01:00
## Full deploy
Deploy with docker:
`docker-compose -f docker-compose.yml -f docker-compose.backend.yml up --build`
and populate DB (or other scripts) with:
`docker exec -it oc-catalog_oc-catalog_1 ./scripts/populate_models.sh ./scripts/demo.json`
2023-10-18 11:01:41 +02:00
or out of docker `./scripts/populate_models.sh ./scripts/demo.json`
2023-03-03 14:43:11 +01:00
## Dev
Start DB with `docker-compose up -d` and run the API with `bee run -downdoc=true -gendoc=true`
## Multinode
Deploy
`docker-compose -f docker-compose.yml -f docker-compose.backend.yml -f docker-compose.multi.yml up --build`
Populate
`./scripts/multinode.sh ./scripts/demo.json`