A professional website for Gujarat's leading industrial roller manufacturer, built with Next.js, featuring job applications, training programs, and product showcases.
- Job Applications: Resume upload with Cloudinary integration
- Training Programs: Course registration with document management
- Contact Forms: Professional inquiry system
- Admin Dashboard: Application management and analytics
- Responsive Design: Mobile-optimized interface
- Cloud Storage: Secure file management with Cloudinary
- Frontend: Next.js 14, React, Tailwind CSS
- Backend: Next.js API Routes, MongoDB
- File Storage: Cloudinary
- Database: MongoDB with Mongoose
- Styling: Tailwind CSS with custom design system
- Deployment: Vercel (recommended) or any hosting platform
- Node.js 18+
- MongoDB database
- Cloudinary account
- Git
-
Clone the repository
git clone <your-repo-url> cd weldingwebsite
-
Install dependencies
npm install
-
Environment Setup Create a
.env.localfile in the root directory:# Database MONGO_URL=your_mongodb_connection_string # Cloudinary CLOUDINARY_CLOUD_NAME=your_cloud_name CLOUDINARY_API_KEY=your_api_key CLOUDINARY_API_SECRET=your_api_secret # Admin Authentication (optional) ADMIN_EMAIL=admin@yourdomain.com ADMIN_PASSWORD=secure_password
-
Run development server
npm run dev
-
Build for production
npm run build npm start
-
Push to GitHub
git add . git commit -m "Initial commit" git push origin main
-
Connect to Vercel
- Go to vercel.com
- Sign up with GitHub
- Import your repository
- Add environment variables
- Deploy!
- Build command:
npm run build - Publish directory:
.next - Environment variables: Same as
.env.local
-
Build the project
npm run build npm run export -
Upload files to your web server
-
Configure environment variables on your server
| Variable | Description | Required |
|---|---|---|
MONGO_URL |
MongoDB connection string | ✅ |
CLOUDINARY_CLOUD_NAME |
Cloudinary cloud name | ✅ |
CLOUDINARY_API_KEY |
Cloudinary API key | ✅ |
CLOUDINARY_API_SECRET |
Cloudinary API secret | ✅ |
ADMIN_EMAIL |
Admin login email | ❌ |
ADMIN_PASSWORD |
Admin login password | ❌ |
- Create a MongoDB Atlas account or use local MongoDB
- Create a database for your application
- Get the connection string
- Add to environment variables
- Sign up at cloudinary.com
- Get your cloud name, API key, and secret
- Add to environment variables
- Configure upload presets if needed
weldingwebsite/
├── app/ # Next.js app directory
│ ├── api/ # API routes
│ ├── admin/ # Admin dashboard
│ ├── careers/ # Careers page
│ ├── training/ # Training page
│ └── ...
├── components/ # React components
├── lib/ # Utility functions
├── models/ # Database models
├── public/ # Static assets
└── ...
# 1. Initialize Git (if not already done)
git init
# 2. Add all files
git add .
# 3. Initial commit
git commit -m "Initial commit: Welding website"
# 4. Add remote origin (replace with your repo URL)
git remote add origin https://github.com/yourusername/weldingwebsite.git
# 5. Push to GitHub
git push -u origin main
# 6. Deploy to Vercel
# - Go to vercel.com
# - Import from GitHub
# - Add environment variables
# - Deploy!- Never commit
.env.localfiles - Use strong passwords for admin accounts
- Enable MongoDB network access restrictions
- Configure Cloudinary upload restrictions
For deployment issues or questions:
- Check the Next.js deployment guide
- Review Vercel documentation
- Check MongoDB and Cloudinary setup guides
- Set up custom domain (if desired)
- Configure SSL certificates
- Set up monitoring and analytics
- Configure backup strategies
- Set up CI/CD pipelines
Happy Deploying! 🚀