Welcome to APeaje! We are building an API gateway for you to save money on your API queries as your app scales. We are still in early development, but if you'd like to contribute here are the steps to set up your dev environment.
- Choose an API-dependent app to test with. If you don't have your own, you can fork the barebones DALL-E wrapper we built to test our app.
- Redirect your API calls to APeaje. By default that will be
http://localhost:3000/
- Launch your front-end app. With DALL-E Wrapper that front-end only app with webpack-dev-server from the terminal by navigating to its directory and running
npm install
thennpm start
and openinghttp://localhost:8080/
in your browser.
- Adjust the qualty configurations for how you want your queries to be transformed in config. Right now, our app includes sample configurations for DALL-E.
- Before running APeaje set up a
.env
file in the root folder withOPENAI_API_KEY
,SUPABASE_URL
, andSUPABASE_KEY
. 1 - To run APeaje from your terminal, navigate to its directory and run
npm install
andnpm start
.
If you have any questions, please reach out to us at [email protected].
Footnotes
-
Our app currently only supports supabase databases set up with the query commented out in the server.js file, but we have plans to automate database setup for any postgres database. ↩