- Node.js 18+ installed
- Vercel account (recommended) or other hosting platform
- Environment variables configured
- Install dependencies:
npm run install:all- Start the development server:
npm run dev- Open http://localhost:3000 in your browser
Create a .env.local file in the frontend directory with:
# Copy from .env.example and fill in your values
NEXT_PUBLIC_APP_NAME=Lawyer of One
NEXT_PUBLIC_APP_URL=https://lawyerofone.com
# Add your API keys and configuration- Push your code to GitHub
- Connect your GitHub repository to Vercel
- Configure environment variables in Vercel dashboard
- Deploy!
The project is already configured for Vercel deployment with:
- Automatic builds on push
- Optimized for Next.js
- Edge runtime support
To test the production build locally:
npm run build
npm run start- Use
npm run buildas build command - Set publish directory to
frontend/.next
- Connect GitHub repository
- Use default Next.js build settings
- Configure environment variables
- Build the application:
npm run build - Use PM2 or similar to run:
pm2 start npm --name "lawyerofone" -- start - Set up reverse proxy with Nginx
- Verify all environment variables are set
- Test contact form functionality
- Check mobile responsiveness
- Verify SEO meta tags
- Set up analytics tracking
- Configure error monitoring (e.g., Sentry)
- Test page load speed
- Set up SSL certificate
- Configure domain DNS
Consider setting up:
- Google Analytics or Plausible
- Uptime monitoring (UptimeRobot, Pingdom)
- Error tracking (Sentry, LogRocket)
- Performance monitoring (Vercel Analytics)