Skip to content

iam-subrat/api-gateway

Repository files navigation

Note: This supports haystack version 1.x.x which has REST API support. Version 2.x.x does not have REST API support hence is not compatible with this app.

Spin up things using docker compose

How to use docker compose to run all services

API_SERVER_DIR_PATH=<path_to_your_api_server_dockerfile_directory> \
HAYSTACK_DIR_PATH=<path_to_your_haystack_directory> \
docker compose up

Note: It might take a while to run the elasticsearch and then haystack-api. Once you see the below INFO log, you can be sure that the haystack server is finally up and running.

haystack-api-1 | INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

Example

API_SERVER_DIR_PATH=/Users/subratpattanaik/Desktop/work/project-xyz/institute-api \
HAYSTACK_DIR_PATH=/Users/subratpattanaik/Desktop/work/project-xyz/haystack \
docker compose up

To stop the services, run docker compose down.

How to run manually without docker

  1. Run the API server.
  2. Run haystack API using Haystack docs.
  3. Run Redis server.
  4. Add .env accordingly to the keys from .env.example and their corresponding value as per your setup.
  5. Run the API gateway using npm run start.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published