Follow this link for docs
Source code repository for chrome backend
Postgres 14 Go 1.21
-
Run
make env
. There are environment variables that are necessary for the application to start. An example of that can be found in.env.example
, but a basic working env file can be created withmake env
-
Run
make infra
. This repo also supportsdocker-compose up
for its postgres server, butmake infra
is recommended to run all needed containers. -
Run the server by using
make dev
If you only want to serve the static navigation files,make dev-static
will serve the needed files from the api. -
To test the service, at the moment, you are able to hit the following endpoint:
GET http://localhost:8000/health GET http://localhost:8000/api/chrome-service/v1/hello-world
To query any endpoint, you will need a x-rh-identity
header in your request.
You can use this value as an example:
eyJpZGVudGl0eSI6eyJ1c2VyIjp7InVzZXJfaWQiOiIxMiJ9fX0=
make dev
will run the service
make infra
will create the db and kafka locally
make clean
will tear down the database.
make generate-search-index
will generate search index file
make parse-services
will generate the services-generated.json
file