โšก Copy & Paste Ready

Project Workflows

Common workflows for different project types. Copy these into Warp Drive!

โš›๏ธ

React / Next.js Projects

Frontend development workflows

๐Ÿ†• Create New Project

โฏ npx create-next-app@latest my-app --typescript --tailwind --eslint
โฏ cd my-app && npm run dev

๐Ÿ”„ Daily Development

# Pull latest & start dev
โฏ git pull && npm install && npm run dev

๐Ÿงช Before PR

โฏ npm run lint && npm run type-check && npm run test && npm run build

๐Ÿ“ฆ Common Packages

npm i axios HTTP client
npm i zustand State management
npm i react-query Data fetching
npm i framer-motion Animations
๐ŸŸข

Node.js Backend

API and server development

๐Ÿ†• Create New API

โฏ mkdir my-api && cd my-api
โฏ npm init -y
โฏ npm i express cors dotenv
โฏ npm i -D typescript @types/node @types/express ts-node nodemon

๐Ÿ”„ Development

# Start with hot reload
โฏ npm run dev
# Test API endpoint
โฏ curl http://localhost:3000/api/health

๐Ÿ—„๏ธ Database Commands

npx prisma init Setup Prisma
npx prisma migrate dev Run migrations
npx prisma studio DB GUI
npx prisma generate Generate client
๐Ÿ

Python Projects

AI, data science, and backend

๐Ÿ†• Create New Project

โฏ mkdir my-project && cd my-project
โฏ python -m venv venv
โฏ source venv/bin/activate # or venv\Scripts\activate on Windows
โฏ pip install -r requirements.txt

๐Ÿ”„ Daily Workflow

# Activate environment
โฏ source venv/bin/activate
# Run script
โฏ python main.py
# Run tests
โฏ pytest

๐Ÿ“ฆ Common Packages

pip install fastapi uvicorn API framework
pip install openai OpenAI SDK
pip install pandas numpy Data science
pip install langchain LLM framework
๐Ÿณ

Docker Workflows

Container management

docker ps List running containers
docker ps -a List all containers
docker images List images
docker build -t name . Build image
docker run -p 3000:3000 name Run container
docker-compose up -d Start services
docker-compose down Stop services
docker logs -f container View logs

๐Ÿงน Cleanup

# Remove all stopped containers
โฏ docker container prune
# Remove unused images
โฏ docker image prune -a
# Nuclear option: remove everything
โฏ docker system prune -a --volumes
โ–ฒ

Vercel Deployment

Ship to production

vercel Preview deploy
vercel --prod Production deploy
vercel env pull Pull env vars
vercel logs View logs
Full Deploy Workflow
# 1. Make sure build works
โฏ npm run build
# 2. Preview deploy
โฏ vercel
# 3. Test preview URL
# 4. Deploy to production
โฏ vercel --prod
๐Ÿ”ง

Troubleshooting Commands

When things go wrong

๐Ÿงน Clean Slate

# Delete node_modules and reinstall
โฏ rm -rf node_modules package-lock.json && npm install
# Clear npm cache
โฏ npm cache clean --force
# Clear Next.js cache
โฏ rm -rf .next

๐Ÿ” Debug Commands

# what's using port 3000 Find port conflict
# kill process on port 3000 Free up port
# show disk usage Check storage
# list running processes Find hung processes
๐Ÿ’ก

Warp AI for Debugging

When you get an error, just type # explain this error or # fix this and let Warp AI help!

Need a quick reference?

View Cheat Sheet