Skip to content

peakacom/embedded-peaka-python-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Embedded Peaka Python Example

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:

Backend Setup

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.

Frontend Setup

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

Contact

For feature requests and bugs, please create an issue in this repo. For further support, see the following resources:

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published