1.7 KiB
1. Run Applicaiton
-
Removes all cached Python packages stored by pip, removes local Python cache files, clears 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 -
Resolve dependencies from your 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 -
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 -
Starts a local development API server, visible at port 8000, and automatically reloads the server as you make code changes.
uv run uvicorn src.main:app --reload --port 8000 -
Scans dependencies for security vulnerabilities and attempts to automatically fix them by force-updating to the latest secure versions.
cd .. cd frontend npm audit fix --force -
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.
cd frontend npm install && npm update && npm run lint && npm run build -
Execute start script in package.json, launch your Node.js application in production mode.
cd frontend npm run start