This app will generate Tray.io script snippets that can be pasted into the builder directly.
Here is a loom recording with an example:
- Login to your OpenAI developer account and create an API key. You can obviously use an existing one. Copy the API Key as it will be added to the
.envfile. - Clone the repo.
- In the backend folder root, add a
.envfile with following content:SECRET_TOKEN=<YOUR_OPEN_AI_API_KEY> - Open terminal in the backend folder, run
npm ifollowed bynpm start.
If the server fails to start with the port in use error, update the PORT in the index.js to a free port
-
Now switch to the frontend folder.
-
Create a
.envfile with the following content:VITE_API_URL='http://localhost:5000'. This is assuming your backend server is running on port 5000. -
Open terminal in the backend folder, run
npm ifollowed bynpm run dev.
The step above should start the frontend server on http://localhost:5173 ideally. (Port may be 5174/5175... and so on depending on avaialbility on your machine).
Now you can open the link in browser and use the tool.
