Job Hunt is a web application designed for hirers and recruiters to connect and manage job postings and applications efficiently.
Check out the live demo here.
- Clone the Repository
git clone https://github.com/amit712singhal/job-hunt.git
cd job-hunt
- Create .env File in Root
Create a .env
file in the root directory with the following content:
PORT=8000
MONGO_URI=mongodb+srv://<username>:<password>@<cluster>.mongodb.net/<db_name>
SECRET_KEY=randomsecretkey
CLOUD_NAME=<cloud_name>
API_KEY=<api_key>
API_SECRET=<api_secret>
For setting up .env
credentials:
- Set up a MongoDB cluster.
- Go to Cloudinary, log in, and navigate to the dashboard.
- Under API keys, copy the following:
CLOUD_NAME
API_KEY
API_SECRET
- Backend Configuration:
Go to the backend index file and configure CORS settings:
// cd backend/index.js
const corsOptions = {
origin: 'http://localhost:5173',
credentials: true,
};
- Frontend Configuration:
Update the API endpoints in the frontend constants file:
// cd frontend/src/utils/constant.js
export const USER_API_END_POINT = "http://localhost:8000/api/v1/user";
export const JOB_API_END_POINT = "http://localhost:8000/api/v1/job";
export const APPLICATION_API_END_POINT = "http://localhost:8000/api/v1/application";
export const COMPANY_API_END_POINT = "http://localhost:8000/api/v1/company";
- Build and Run:
Run the following commands to build and start the application:
// cd root
npm run build
npm run start
The website will now be accessible at http://localhost:8000
.
To deploy the project on Render, follow these steps:
- Sign in with your GitHub account.
- Go to New -> Web Service.
- Select the repository to deploy.
- After connecting, update the build and start commands:
- Build Command:
npm run build
- Start Command:
npm run start
- Build Command:
- Choose a suitable plan.
- Add your environment variables from the
.env
file in the settings. - Deploy the service.
After deploying, update the URLs in the project to match the provided Render URL.
- Update the CORS origin:
const corsOptions = {
origin: 'http://<your-render-url>',
credentials: true,
};
- Update the API endpoints in the frontend constants file:
export const USER_API_END_POINT = "http://<your-render-url>/api/v1/user";
export const JOB_API_END_POINT = "http://<your-render-url>/api/v1/job";
export const APPLICATION_API_END_POINT = "http://<your-render-url>/api/v1/application";
export const COMPANY_API_END_POINT = "http://<your-render-url>/api/v1/company";
Go to Manual Deploy and deploy the latest commit.
- Job posting management
- Application tracking
- Cloud-based storage for job postings
- Real-time job application updates
Contributions to this project are welcome! If you find any bugs or have suggestions for improvements, please create an issue or submit a pull request.
- Fork the repository.
- Create your feature branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -am 'Add some feature'
). - Push to the branch (
git push origin feature/YourFeature
). - Create a new Pull Request.
I love connecting with new people and exploring new opportunities. Feel free to reach out to me through any of the platforms below:
This project is licensed under the MIT License. See the LICENSE file for details.