This Next.js app provides a simple UI to run your existing Python ciRNA GA scripts and display their exact stdout.
- Node.js 18+
- Python 3 (available as
python3) - ViennaRNA RNAfold in PATH (the scripts call
RNAfold)- macOS (Homebrew):
brew install viennarna
- macOS (Homebrew):
cd webapp
npm run dev
- Select which Python script to run (default:
script_final.py). - Optionally enter space-separated args (passed after the script name).
- Click Run. The API spawns
python3 /Users/konstantinosdaniilidis/Desktop/igem2025/<script>and returns stdout/stderr.
- Long runs: The request stays open until the Python process exits and returns the full stdout.
- Pathing: The API runs from the Next.js app and resolves your repo root (
igem2025) automatically. - Change Python binary: set
PYTHON_BINenv inprocess.env(and update the spawn command) if needed.