# README
Ozon Code Platform Certificate API
OCP Certificate Api - service for work and management of the certificate platform.
The service supports management methods:
Field | Type | Description |
---|---|---|
Id | Number | Unique id certificate |
UserId | Number | Id user to whom the certificate belongs |
Created | Timestamp | Certificate creation time |
Link | String | Link to certificate |
To start and build the service, you need to do the following
1 Step [Clone]
- git clone https://github.com/ozoncp/ocp-certificate-api.git
- cd ocp-certificate-api
2 Step [Dependence]
make deps
3 Step [Build]
make build
4 Step [Run]
make start
5 Step [Migrate]
make migrate
- or run in container cli interface
./ocp-certificate-api -migrate up
./ocp-certificate-api -migrate down
OR
All steps [Build+Deploy+Run+Migrate]
make deploy
Stop container
make stop
Remove containers and images
docker rm -vf $(docker ps -a -q)
docker rmi -f $(docker images -a -q)
Load testing with Pandora:
run:
test/load/load pandora.yaml
set config:
pandora.yaml
Services:
Swagger UI
REST
gRPC
Prometheus
Grafana
- http://localhost:3000
- Auth
- admin/MYPASSWORT
- Set dashboard:
- Configuration -> DataSources -> Add datasource -> Prometheus
- Set Url: http://localhost:9090
- Save & test
- Run to Explore page
Metrics
Jaeger UI
Graylog
- http://localhost:9000
- Auth
- admin/admin
Kafka
Kafka UI
Zookeeper
# Packages
No description provided by the author