You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd api
docker build -t svf-backend .&& docker run svf-backend
Option 2: Local Installation
Install Python-SVF:
git clone "https://github.com/SVF-tools/SVF-Python.git"cd SVF-Python
bash ./build.sh
# You may also need to install Python Wheels
python3 -m pip install dist/*.whl
Install backend dependencies:
# Navigate to the api directorycd api
python3 -m pip install -r requirements.txt
npm start
# The app will run on https://localhost:5173
Production build:
npm run build
# The build output will be in the dist/ directory
Linting
You can run the following commands in the root directory.
npm run lint
npm run lint:fix
npm run format
npm run format:check
npm run type-check
# Checks all of them together
npm run validate
Configuration
API Key for CodeGPT for Local Installation (Optional)
If you want to use the CodeGPT feature locally, you'll need an OpenAI API key:
Create an account with OpenAI
Navigate to the API section
Generate an API key
Create a .env file in the root directory:
VITE_OPENAI_API_KEY='YOUR_API_KEY'
Deployment
The frontend and backend is configured for deployment to GitHub Pages and Fly.io. Push to the master branch to trigger automatic deployment via GitHub Actions.
About
WebSVF : Online Learning and Teaching Platform for Code Analysis based on SVF