Prerequisites
Before setting up Wrkks locally, ensure you have the following installed:- Node.js 20.x or higher
- pnpm (package manager)
- Git
Environment variables
Wrkks requires several environment variables to run properly. Create a.env.local file in the root directory:
.env.local
The
.env* files are gitignored by default. Never commit your environment variables to version control.Installation steps
Install dependencies
Install all required dependencies using pnpm:This will install all dependencies listed in
package.json, including:- Next.js 16.1.6
- React 19.2.3
- Clerk for authentication
- Supabase for database
- OpenAI SDK for AI features
Configure environment variables
Copy the environment variables template and fill in your values:Edit
.env.local with your actual API keys and credentials.Run the development server
Service setup
Clerk authentication
- Create a free account at Clerk
- Create a new application
- Copy the publishable key and secret key to your
.env.local - Configure sign-in methods (email, OAuth providers, etc.)
Supabase database
- Create a free account at Supabase
- Create a new project
- Copy the project URL and anon key to your
.env.local - Set up the database schema:
OpenRouter AI
- Sign up at OpenRouter
- Generate an API key
- Add the key and your preferred model name to
.env.local
Development commands
| Command | Description |
|---|---|
pnpm dev | Start development server on port 3000 |
pnpm build | Build production bundle |
pnpm start | Start production server |
pnpm lint | Run ESLint to check code quality |
Verify installation
To verify your setup is working correctly:- Visit
http://localhost:3000- you should see the Wrkks homepage - Click “Build My Website” - authentication should work
- Upload a PDF resume - parsing should work if OpenRouter is configured
- Check the console for any errors
Troubleshooting
Port already in use
If port 3000 is already in use, you can specify a different port:Module not found errors
Clear the Next.js cache and reinstall dependencies:PDF parsing fails
The application usespdf-parse-new as a server-side external package. Ensure this is configured in next.config.ts:
next.config.ts
Next steps
Once your local environment is set up:- Review the Architecture to understand the codebase structure
- Explore Components to learn about key React components
- Check API Routes to understand the backend endpoints