Skip to content

ozoncp/ocp-certificate-api

Repository files navigation

Ozon Code Platform Certificate API

build-and-test codecov

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]

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: