Basic Node.js microservice for CVE (Common Vulnerabilities and Exposures) information management made using gRPC and PocketBase.
Required environment variables (define in .env
):
POCKETBASE_URL
- PocketBase instance, defaults tohttp://localhost:8090
POCKETBASE_ADMIN_EMAIL
- PocketBase superadmin email for authenticationPOCKETBASE_ADMIN_PASSWORD
- PocketBase superadmin password for authenticationGRPC_AUTH_URL
- cve-dashboard-auth service URL, defaults tolocalhost:50051
Generate gRPC code with:
.\node_modules\.bin\grpc_tools_node_protoc \
--plugin=protoc-gen-ts_proto=.\node_modules\.bin\protoc-gen-ts_proto.cmd \
--ts_proto_out="<absolute path of root dir>\proto\compiled_proto" \
--ts_proto_opt="outputServices=nice-grpc,outputServices=generic-definitions,useExactTypes=false" \
--proto_path=./proto \
./proto/<filename>.proto