coding-blocks/certificate-worker

Incomplete README.

Closed this issue · 9 comments

@jatinkatyal13 There must be proper README for this project. there is no information given about this project at all.

@prathambatra yes, I'll be adding the README and the issues in a couple of days

The purpose of this project is to generate a certificate PDF, upload it to minio and revert the client on the given callback URL.

It acts as a consumer on the queue named amoeba-certificates and accepts the following payload:

{
    data: {
        run: { ... },
        user: { ... },
        template: "kotlin",
        
    },
    callback: "https://online......"
}

to run the project

yarn install
yarn start

to generate certificate for all the templates

node src/test.js

Generate a readme containing all the points required to setup, run and work on the project. Add code snippets to explain, how one can run and debug the application with or without docker.

PS: A good approach to writing a nice README is to setup the project locally and listing down all the issues faced by you to reach the first successful run. You can always google search or contact mentors to help you out if you are stuck.

ok @jatinkatyal13 , I will start working on this.

@jatinkatyal13 while setting locally, what credentials I should use for amqp.

Screenshot from 2020-05-22 00-45-16
My rabbitmq server is running on port 5672 still connection is getting refused by error .

If you are running the application inside docker it won't be able to access the rabbitmq running on your host system. You can either update the docker-compose file (even in the PR) to include the rabbitmq service. This will run the rabbitmq in the same docker network as this certificate worker and it'll be able to connect to it. Refer this implementation

Screenshot from 2020-05-24 00-14-34
@jatinkatyal13 please help. i have updated docker compose still getting same connection error. you can see both docker-compose file and the error in the screenshot.

@prathambatra rabbitmq host should be rabbitmq i.e. the name of the service in the docker-compose file

Cool thanks. Will send a PR in sometime.