For more information on the app, see Web App in the main iCatcher+ repository.
To run iCatcher+, you will need:
- Python >=3.9
- Node.js
- A virtual environment manager, such as Miniconda or virtualenv
- Ffmpeg installed in your system and available (if you used conda, you can quickly install it with
conda install -c conda-forge ffmpeg
)
-
Clone the git repository
-
Install the icatcher python module in editable mode by running
pip install -e .
in the main directory. -
Once you have Node.js working in your command line, you can install the frontend dependencies from the
/frontend
directory by runningnpm ci
(preferred) ornpm install
.
To run the UI for testing or use, run icatcher --app
in your terminal and it should open automatically at http://localhost:5001. If it's your first time running it, the launch will take a bit longer as the app is built into the frontend/build
directory.
To run the UI for frontend development, navigate to the frontend
directory and run npm start
. Once launched, you can find this code at http://localhost:3000/
. Running this way will allow the app to update views automatically when changes are saved to frontend files.
All development should operate under the strict constraint that user videos should not be uploaded to the internet at any point. Ideally, the whole app can function without internet access.
If you see a 404
error when trying to open the app at http://localhost:5001, try the following:
- Double check that you have node insalled and the
npm
keyword available in your terminal, then try running again - Delete the
src/icatcher/icatcher_app/frontend/build
directory and try running again - If the following approaches don't work, you can build the app yourself by running
npm run build
in thefrontend
directory and try runningicatcher --app
again