Run the following commands in your backend directory inside the project directory:
# Create a virtual environment
python -m venv venv
# Activate the virtual environment (Windows)
venv\Scripts\activateYou should see (venv) in your terminal indicating that the virtual environment is active.
python app.pyYou can verify installations using:
node -v
npm -vInstall required packages (inside project folder)
npm installnpm run devEnsure Redis is installed and start the Redis server:
redis-serverTo check if Redis is running:
redis-cli ping # Should return 'PONG'cd backend # Ensure you're in the backend directory
celery -A app.celery worker --loglevel=infocelery -A app.celery beat --loglevel=infoMailHogTo stop the services:
sudo service redis-server stop # Stop Redis or
sudo service redis-server start
pkill -f "celery" # Stop Celery worker and beat