Run the following command to install the required npm packages:
npm install
Create a .env
file in the root directory and add the following environment variables:
TUNE_KEY=<key> # Obtain from https://studio.tune.app
STUDIO_MODEL=<model> # Obtain from https://studio.tune.app
SWIGGY_SESSION_ID=<session_id> # Obtain from https://www.swiggy.com/
Run the following command to start the server:
npm run dev
The server will start on port 3000
.
- Log in to Swiggy.
- Open the developer tools in your browser.
- Copy the value of the cookie named
_session_tid
.
Note: This workaround is necessary as Swiggy does not provide developer APIs at this time.