Skip to content

mehag05/knotiq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knot Data Demo

Setup Instructions

Backend Setup

  1. Create and activate a Python virtual environment:
# Create virtual environment
python3 -m venv venv

# Activate virtual environment
# On macOS/Linux:
source venv/bin/activate
# On Windows:
# .\venv\Scripts\activate
  1. Install Python dependencies:
pip install -r requirements.txt
  1. Run the Flask backend server:
python3 api.py

Frontend Setup

  1. Navigate to the client directory:
cd client
  1. Install Node dependencies:
npm install
  1. Start the React frontend:
npm run start

Modal Server Setup

  1. Install Modal (if not already installed):
pip install modal
  1. Run the Modal server:
modal serve text_to_image.py

Running the Project

Make sure all three components are running:

  1. Flask Backend (port 5001)
  2. React Frontend (port 3000)
  3. Modal Server

The application will be available at http://localhost:3000

Troubleshooting

  • If you see connection errors, ensure all three servers are running
  • Check that ports 3000 and 5001 are available
  • Make sure you're using the virtual environment when running Python commands

Additional Comments

There are some unneccesary files in the repository, such as the mock.py file, which is a mock transaction generator. Please ignore, we had lots of iterations!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published