AI Job Cold Email Generator is a web application that helps users create professional cold emails tailored for job applications using AI. The application is split into two parts: a frontend built with Next.js and a backend developed with FastAPI.
- Generate professional job cold emails using AI.
- Modern UI for user-friendly interaction.
- Secure API integration for data processing.
jceg/
├── frontend/ # Next.js app
├── backend/ # FastAPI app
- Node.js (v20+)
- Python (v3.9+)
- Vercel CLI (for deployment)
git clone https://github.com/muhammaduxair/jceg.git
cd jceg
- Navigate to the
frontend
directory:cd frontend
- Install dependencies: (I'm using
pnpm
project manager)pnpm install
- Set up environment variables:
- For development, use
.env.local
. Example:NEXT_PUBLIC_API_URL=http://localhost:8000/api/v1/
- For production, create
.env.production
:NEXT_PUBLIC_API_URL=https://your-backend-url.vercel.app
- For development, use
- Start the development server:
The app will be available at
pnpm run dev
http://localhost:3000
.
- Navigate to the
backend
directory:cd backend
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables:
- Create a
.env
file with the following content:GROQ_API_KEY=your_groq_api_key ALLOWED_ORIGINS=http://localhost:3000
- Create a
- I'm using Groq Cloud for LLM. Visit console.groq.com to create your API key.
- Run the development server:
The API will be available at
uvicorn main:app --reload
http://localhost:8000
.
- Navigate to the
frontend
directory. - Deploy using Vercel CLI:
vercel login vercel --prod
- Vercel will use your
.env.production
file during the build process.
- Navigate to the
backend
directory. - Ensure the
vercel.json
file is present with the following content:{ "version": 2, "builds": [ { "src": "main.py", "use": "@vercel/python", "config": { "maxLambdaSize": "15mb", "runtime": "python3.9" } } ], "routes": [ { "src": "/(.*)", "dest": "main.py" } ], "env": { "GROQ_API_KEY": "API_KEY_HERE", "ALLOWED_ORIGINS": "YOUR_CLIENT_APP_URL" } }
- Deploy using Vercel CLI:
vercel login vercel --prod
- The
.env.production
file for the frontend and the.env
file for the backend should not be pushed to Git for privacy and security reasons. - Always update your API key and allowed origins in the environment variables as required.
- For the backend app, the
vercel.json
file contains the environment variables for production.
This project is licensed under the MIT License. See the LICENSE file for details.