Skip to content

Suryansh777777/job-board

 
 

Repository files navigation

Project Name: Job Board

All about job board
Project Status

Table of Contents

Description

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.

Technologies

  • Web-app: Next.Js, TypeScript
  • Database: Prisma ORM, Postgres
  • Authentication: NextAuth
  • Hosting: Vercel, Heroku
  • Containerization: Docker

Getting Started

To get started with the Job Board app, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/job-board

Follow these steps to set up the repository locally and run it.

Configuration

  1. 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=
  2. To generate AUTH_SECRET,

    Run this command in your terminal:

    openssl rand -base64 33

    or

    Run in browser

Running the Project with Docker

docker compose up --build

Running the Project without Docker

  1. Install the necessary dependencies:

    npm install
  2. Sync & Seed your database:

    npm run db:seed
  3. Start the development server:

    npm run dev

Now, you can run the project and make changes as needed.

Test User Credentials

Emails: '[email protected], [email protected]';
Password: '123456';

Steps to create a BunnyCDN storage for this repo:

  1. Create a storage zone:

    Create a storage zone
  2. Connect the storage zone to a pull zone:

    Connect the storage zone to a pull zone
  3. 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_API_KEY

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_UPLOAD_URL


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

 CDN_BASE_ACCESS_URL

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.6%
  • CSS 3.7%
  • Other 0.7%