Job Manager

Prerequisites

  • Go (v1.23.3 or higher)

  • MongoDB

  • Docker

Building and Running Locally

  1. Clone the repository:

git clone https://github.com/yourusername/Job-Manager-Adapter.git
cd Job-Manager-Adapter/bpp/backend
  1. Create a .env file in the root directory and add your environment variables.

DB_SERVER=<mongo-db-server-address>
DB_USER=<mongo-db-username>
DB_PASSWORD=<mongo-db-password>
BPP_ID=<bpp-id>
BPP_URI=<bpp-uri>
  1. Start the development server:

export $(cat .env | xargs) && go run main.go
  1. The server should now be running at http://localhost:8080.

Deploying Using Docker

  1. Build the Go program

  1. Update the Makefile

  1. Build the docker image

  1. Run the docker image container

Last updated

Was this helpful?