This is a hybrid TypeScript + Python app that uses React as the frontend and Flask as the API backend.
The React frontend is mapped under frontend/.
The Python/Flask server is mapped under backend/.
On localhost, the rewrite will be made to the 127.0.0.1:5000 port, which is where the Flask server is running.
For the frontend, install the dependencies:
npm installThen, run the development server:
npm run devOpen http://localhost:5173 with your browser to see the result.
For the backend Flask Application, run:
flask run --debug
to start the development server. The Flask server will be running on http://127.0.0.1:5000.
To start the Celery broker, first run the Redis queue in the Docker container:
docker run -d -p 6379:6379 redis
Then, execute the following command to start Celery from the backend/ folder.
celery -A app.celery worker --loglevel INFO
Connect to the RWTH VPN using Cisco AnyConnect. Then, run the ssh-forward.sh shell file to set up a bidirectional SSH connection.
In the remote server, run the shell file start_application_terminals.sh in the /projects/ba/Translucify-Transformer-Service directory.