All about job board
Project Status
Job Board is a platform designed to connect employers with potential employees. Employers can post job listings, and job seekers can apply for these positions. The application ensures a seamless and efficient job search and hiring process.
- Web-app: Next.Js, TypeScript
- Database: Prisma ORM, Postgres
- Authentication: NextAuth
- Hosting: Vercel, Heroku
- Containerization: Docker
To get started with the Job Board app, follow these steps:
-
Clone the repository:
git clone https://github.com/yourusername/job-board
Follow these steps to set up the repository locally and run it.
-
Create a
.env
file in the root folder of your project. Update it following the convention of the.env.example
file. Here's an example:# # Database # DATABASE_URL="postgres://postgres:password@localhost:5432/postgres" # # AUTH # NEXTAUTH_SECRET="koXrQGB5TFD4KALDX4kAvnQ5RHHvAOIzB" NEXTAUTH_URL="http://localhost:3000" # # Bunny CDN # CDN_SZ_NAME= CDN_BASE_PATH= CDN_API_KEY=
-
To generate AUTH_SECRET,
Run this command in your terminal:
openssl rand -base64 33
or
docker compose up --build
-
Install the necessary dependencies:
npm install
-
Sync & Seed your database:
npm run db:seed
-
Start the development server:
npm run dev
Now, you can run the project and make changes as needed.
Emails: 'user@gmail.com, admin@gmail.com';
Password: '123456';
-
Create a storage zone:
-
Connect the storage zone to a pull zone:
-
Set environment variables:
Go to the FTP & API Access section in the storage zone and add the following environment variables:
CDN_API_KEY=<your-api-key>
Which you can find in the storage -> [storage name] -> FTP & API Access section
CDN_BASE_UPLOAD_URL=<your-cdn-base-upload-url>
Which is https://[your-hostname]/[storage-name]/[any folder name you might have added otherwise empty]
CDN_BASE_ACCESS_URL=<your-cdn-base-access-url>
Which is https://[your-pull-zone-hostname]/[any folder name you might have added otherwise empty] or get link from the dashboard as mentioned below