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
- 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= NEXTAUTH_URL="http://localhost:3000" # # Bunny CDN # CDN_API_KEY= CDN_BASE_UPLOAD_URL= CDN_BASE_ACCESS_URL= NEXT_PUBLIC_GOOGLE_MAPS_API_KEY= # # Email SMTP credentials # EMAIL_USER=user@gmail.com EMAIL_PASSWORD= # # Google OAuth credentials # GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET=
-
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
To use the Google Maps API in your applications, follow the steps below to create and set up your API key.
- Navigate to the Google Cloud Console.
- If you don’t have a Google account, create one and sign in.
- In the Cloud Console, click on the Select a project dropdown at the top.
- Click New Project to create a new project.
- Give your project a name, select the organization (optional), and choose the billing account.
- Click Create.
3.After Completeing account setup , select the "Keys and Credentails" Section. 4.Then select the Create Credentials option , under which you can select the "API Key Option"
-
Although the documentation mentions that without restriction , the API key will work everywhere, that is not the case for http requests.
-
Add a restriction and mention your localhost along with your port for it to start working on local , and save and continue
-
to test navigate to the http://localhost:3000/create , and test the "Where is the job located" input.