CareerChive

Get started using a GitHub fork.

Quickstart

Quickstart

Get started using a GitHub fork.

Setting Up

Grab CareerChive Repository

Fork https://github.com/beck-chan/career-chive/ on GitHub, then clone your copy into your local environment:

git clone https://github.com/YOUR_USER/career-chive.git
cd career-chive
# Install dependencies
npm install

Set Up Environment Variables

  1. Copy the .env.example file to .env.local:

    cp .env.example .env.local
    
  1. Fill in values from your Supabase project and Cloudflare R2 bucket:

    # Supabase project URL
    NEXT_PUBLIC_SUPABASE_URL=https://<your-database-url>.supabase.co
    
    # Supabase publishable key (browser-safe, RLS still applies)
    NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY=sb_publishable_<your-publishable-key>
    
    # Server Data API secret. (Never NEXT_PUBLIC_)
    SUPABASE_SECRET_KEY=sb_secret_<your-secret-key>
    
    # Cloudflare Account ID
    CLOUDFLARE_ACCOUNT_ID=<your-account-id>
    
    # Cloudflare R2 Bucket  
    R2_BUCKET=<your-bucket-name>  
    
    # Cloudflare R2 Access Key ID
    R2_ACCESS_KEY_ID=<your-access-key-id>
    
    # Cloudflare R2 Secret Access Key
    R2_SECRET_ACCESS_KEY=<your-secret-access-key>
    
    # Cloudflare R2 Endpoint
    R2_ENDPOINT=https://<CLOUDFLARE_ACCOUNT_ID>.r2.cloudflarestorage.com
    

Installing

1. Run Installation Schema

  1. Copy the contents of schema.sql to your clipboard.

  2. Within Supabase, select SQL Editor from the left sidebar, then paste in the contents of schema.sql.

  3. Click Run to execute the schema.

  4. If you receive a Potential issue detected popup, click Run query to execute the schema.

Serve Your CareerChive

To build the application locally for private use:

# Linter check for errors
npm run lint
# Compile
npm run build
# Serve build 
npm run start

What's Next

Enable your ChiveBot and configure your settings and organizations: