A marketplace connecting people with AI-generated code issues to developers who can fix them.
- Node.js 18+ (managed via mise or nvm)
- Docker and Docker Compose
- npm
-
Clone the repository
git clone <your-repo-url> cd cleanupmyaislop
-
Set up the development environment
npm run dev:setup
This will:
- Start PostgreSQL in Docker
- Install dependencies
- Create database tables
- Set up environment variables
-
Start the development server
npm run dev
-
Visit the application
- Main site: http://localhost:5173
- Database UI:
npm run db:studio(opens Drizzle Studio)
npm run dev:db:start- Start PostgreSQL containernpm run dev:db:stop- Stop PostgreSQL containernpm run dev:db:reset- Reset database (deletes all data!)npm run db:studio- Open Drizzle Studio to view/edit datanpm run db:push- Apply schema changes to databasenpm run db:generate- Generate migration files
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production buildnpm run check- Type check the codebasenpm run format- Format code with Prettier
- Framework: SvelteKit with Svelte 5
- Database: PostgreSQL with Drizzle ORM
- Styling: Tailwind CSS 4
- Authentication: Custom session-based auth
- Deployment: Cloudflare Pages & Workers
Copy .env.development to .env for local development:
cp .env.development .envRequired variables:
DATABASE_URL- PostgreSQL connection stringAUTH_SECRET- Secret for session encryption
The application includes:
- Users: Clients and developers with role-based access
- Projects: Job postings from clients
- Proposals: Bids from developers
- Reviews: Feedback system
- Developer Profiles: Extended developer information
- Set up a PostgreSQL database (Neon, Supabase, or Railway)
- Set environment variables in Cloudflare Pages dashboard
- Deploy via Wrangler CLI or GitHub integration
See DEPLOYMENT.md for detailed instructions.
- Ensure Docker Desktop is running
- Check ports:
lsof -i :5432(PostgreSQL should not be in use) - View logs:
docker-compose logs postgres
- Reset database:
npm run dev:db:reset - Check connection:
docker-compose exec postgres psql -U postgres -d cleanupmyaislop