Sample python project to demonstrate Embedded Peaka UI integration and Peaka SQLAlchemy client usage. Project has backend and frontend implementations. Backend is implemented using Flask framework. Backend makes API calls to Peaka Partner API. You can check the Partner API details from Peaka Documentation. Frontend is implemented with vite, react, tailwind and radix-ui.
You need to run backend and frontend together. Here is how you can do the setup for both of them:
Open a terminal go into backend folder.
cd backend
Copy the environment file example file:
cp .env.example .env
Replace <YOUR_PARTNER_API_KEY>
with your own partner API Key. Then create your virtual environment and install required packages with commands below.
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
Then start flask app with following command.
python app.py
Your backend app should start running on port 3001
.
Open a terminal go into frontend folder.
cd frontend
Install dependencies using npm then start project with commands below.
npm install
npm run dev
Your frontend app should start running on port 5173
For feature requests and bugs, please create an issue in this repo. For further support, see the following resources: