Skip to content

The API gateway for Aerie.

License

Notifications You must be signed in to change notification settings

NASA-AMMOS/aerie-gateway

Repository files navigation

GitHub package.json version

aerie-gateway

The API gateway for Aerie.

Need Help?

Develop

First make sure you have Node.js LTS installed.

If you are doing active local development outside of a container, duplicate the .env.template and rename it to .env. Set the default GATEWAY_DB_USER, GATEWAY_DB_PASSWORD, and HASURA_GRAPHQL_JWT_SECRET environment variables. If your Hasura instance is not hosted on http://localhost:8080, update the value of HASURA_API_URL in the .env as well. Afterwards, run the following:

npm install
npm run dev

This will watch for code changes and rebuild and restart the gateway server automatically.

If you are running Aerie Gateway within a container (i.e. the docker-compose from the main Aerie repo), run the following before starting the container:

npm install
npm run build
npm start

License

The scripts and documentation in this project are released under the MIT License.