Skip to content
zachradtkaPublic

Repository files navigation

NextOpp

A simple web app to track job opportunities during your search. Keep tabs on where you've applied, interview status, salary ranges, notes, and more — all in one place.

Built with Next.js, SQLite, and Tailwind CSS.

Features

  • Track opportunities with company, role, status, salary, location, and notes
  • Filter by status (Saved, Applied, Interviewing, Offered, Rejected, Withdrawn, Accepted)
  • Update status inline from the dashboard
  • Archive or delete opportunities you no longer need
  • Optional authentication (GitHub, Google, LinkedIn, or email magic link)

Getting Started

Prerequisites

  • Node.js 18+
  • npm

Setup

  1. Clone the repo and install dependencies:
git clone <your-repo-url>
cd nextopp
npm install
  1. Copy the example environment file:
cp .env.example .env.local

The default config (AUTH_DISABLED=true) lets you run locally with no additional setup.

  1. Set up the local database:
npm run db:push
  1. Start the dev server:
npm run dev

Open http://localhost:3000 and start tracking.

Authentication (Optional)

By default, auth is disabled so you can use the app immediately. To enable authentication, set AUTH_DISABLED=false and configure one or more providers below. Only providers with credentials configured will appear on the sign-in page.

All providers require an AUTH_SECRET:

AUTH_DISABLED=false
AUTH_SECRET=your-random-secret  # Generate with: npx auth secret

GitHub

  1. Create a GitHub OAuth App at github.com/settings/developers

    • Set the callback URL to http://localhost:3000/api/auth/callback/github
  2. Add to .env.local:

AUTH_GITHUB_ID=your-client-id
AUTH_GITHUB_SECRET=your-client-secret

Google

  1. Create OAuth credentials in the Google Cloud Console

    • Create an OAuth 2.0 Client ID (Web application type)
    • Add http://localhost:3000/api/auth/callback/google as an authorized redirect URI
  2. Add to .env.local:

AUTH_GOOGLE_ID=your-client-id
AUTH_GOOGLE_SECRET=your-client-secret

LinkedIn

  1. Create an app in the LinkedIn Developer Portal

    • Under Auth, add http://localhost:3000/api/auth/callback/linkedin as an authorized redirect URL
    • Request the Sign In with LinkedIn using OpenID Connect product
  2. Add to .env.local:

AUTH_LINKEDIN_ID=your-client-id
AUTH_LINKEDIN_SECRET=your-client-secret

Email Magic Link

Passwordless sign-in via email using Resend.

  1. Create an account at resend.com and get an API key

  2. Add to .env.local:

AUTH_RESEND_KEY=your-api-key
AUTH_EMAIL_FROM="NextOpp <noreply@yourdomain.com>"  # optional, defaults to noreply@resend.dev

Restricting Access

To limit who can sign in, set ALLOWED_USERS to a comma-separated list of GitHub usernames or email addresses:

ALLOWED_USERS=githubuser,someone@example.com

Leave it empty to allow anyone who can authenticate with a configured provider.

Deploy to Vercel

1. Create a Turso database

# Install the Turso CLI
curl -sSfL https://get.tur.so/install.sh | bash

# Sign up / log in
turso auth login

# Create a database
turso db create nextopp

# Get your credentials
turso db show nextopp --url
turso db tokens create nextopp

2. Push the schema to Turso

TURSO_DATABASE_URL=<your-url> TURSO_AUTH_TOKEN=<your-token> npm run db:push

3. Deploy on Vercel

  1. Go to vercel.com, sign in, and click Add New Project
  2. Import your forked repository
  3. Add the following environment variables:
Variable Value
TURSO_DATABASE_URL Your Turso database URL
TURSO_AUTH_TOKEN Your Turso auth token
AUTH_DISABLED true (set to false to enable auth)
  1. Click Deploy

4. Enable authentication (optional)

Once your app is deployed and you have your production URL:

  1. Set up one or more auth providers (see Authentication above), using your production URL for callback URLs (e.g. https://nextopp.app/api/auth/callback/github)
  2. Add these environment variables in Vercel:
Variable Value
AUTH_DISABLED false
AUTH_SECRET Generate with npx auth secret
AUTH_GITHUB_ID GitHub OAuth client ID (optional)
AUTH_GITHUB_SECRET GitHub OAuth client secret (optional)
AUTH_GOOGLE_ID Google OAuth client ID (optional)
AUTH_GOOGLE_SECRET Google OAuth client secret (optional)
AUTH_LINKEDIN_ID LinkedIn OAuth client ID (optional)
AUTH_LINKEDIN_SECRET LinkedIn OAuth client secret (optional)
AUTH_RESEND_KEY Resend API key for email magic link (optional)
AUTH_EMAIL_FROM Email sender address (optional)
ALLOWED_USERS Comma-separated GitHub usernames or emails (leave empty to allow all)
  1. Redeploy from the Vercel dashboard

Sample Data

To load sample data for local development:

npm run import -- scripts/sample-data.csv local-dev-user

This imports 28 opportunities with a mix of statuses, dates, and companies. You can re-run it after resetting the database if you want a fresh start:

rm local.db
npm run db:push
npm run import -- scripts/sample-data.csv local-dev-user

To import your own data, create a CSV with these columns:

Application Date,Company,Role,Work Mode,Location,Status,Job URL
  • Application Date: MM/DD/YYYY format
  • Status: saved, applied, interviewing, offered, rejected, withdrawn, or accepted
  • Work Mode: remote, hybrid, or onsite

Then run:

npm run import -- path/to/your-data.csv local-dev-user

Feature flags

Unfinished pages (Dashboard, Insights, Settings, Alerts) are hidden behind feature flags built on the Vercel Flags SDK. When a flag is off, the sidebar link is hidden and the route returns 404; when it's on, the link appears and the page renders.

Flags default to off in every environment. Each is controlled by a FLAG_* environment variable — set it to true to enable that feature:

  • Locally — add FLAG_DASHBOARD=true (etc.) to .env.local.
  • Vercel Preview — add the FLAG_* var under Settings → Environment Variables, scoped to the Preview environment, to dogfood an in-progress feature via a preview link without exposing it in Production.
  • Vercel Production — add the FLAG_* var scoped to the Production environment when the feature is ready to ship.

Use Environment Variables, not the Vercel Flags dashboard. Vercel's dashboard has a separate "Flags" feature (with per-environment "Rules") whose values live in Edge Config — process.env is never populated from it, so the code here cannot read it. These flags are plain environment variables. A Vercel env-var change only takes effect after a redeploy of that environment.

Flag definitions live in src/lib/flags.ts — add new flags there.

Scripts

Command Description
npm run dev Start development server
npm run build Build for production
npm run start Start production server
npm run db:push Push schema changes to the database
npm run db:generate Generate migration files
npm run db:studio Open Drizzle Studio to browse your data
npm run import -- <csv> <user-id> Import opportunities from a CSV file

Tech Stack

License

MIT

Releases

Packages

Used by

Contributors

Languages