Files
avaaz/app
Madava 73fd4d26a5
All checks were successful
Continuous Integration / Validate and test changes (push) Successful in 3s
Update documentation
2025-12-03 01:28:28 +01:00
..
2025-12-03 01:28:28 +01:00

1. Run Applicaiton

  1. Remove all cached Python packages stored by pip, remove local Python cache files, clear the cache used by uv, and forcibly clear the cache for Node.js.

    uv tool install cleanpy
    pip cache purge && cleanpy . && uv cache clean && npm cache clean --force
    
  2. Resolve dependencies from pyproject.toml and upgrade all packages. Synchronize the virtual environment with the dependencies specified in the uv.lock including packages needed for development.

    cd backend
    uv lock --upgrade
    uv sync --dev
    
  3. Lint and check code for errors, style issues, and potential bugs, and try to fix them. Discover and run tests in tests/.

    uv run ruff check --fix && uv run pytest
    
  4. Start a local development API server, visible at port 8000, and automatically reloads the server when code changes are made.

    uv run uvicorn src.main:app --reload --port 8000
    
  5. Open a new terminal. Scan dependencies for security vulnerabilities and attempt to automatically fix them by force-updating to the latest secure versions.

    cd frontend
    npm audit fix --force
    
  6. Install dependencies from package.json, then update those dependencies to the latest allowed versions based on version ranges. Next, check the source code for stylistic and syntax errors according to configured rules. Finally, compile or bundle the application for deployment or production use.

    npm install && npm update && npm run lint && npm run build
    
  7. Execute start script in package.json, launch Node.js application in development mode.

    npm run dev