Skip to content

Kyczan/next-lectures

Repository files navigation

Next Lectures

Fullstack TS application to schedule lectures with Google authentication.

Features

How to run locally

  1. Clone repo.

  2. Install deps (npm i).

  3. Copy .env.local.example to .env.local (this file should not be versioned).

    • Set up NEXTAUTH_URL to your domain (if running locally, set to http://localhost:3000/)
  4. You will need a MongoDB (you can try Atlas or install one locally).

    • Set up connection string in .env.local under MONGODB_URI key.
  5. You will need to set up Google OAuth2 to use as auth method.

    • NextAuth docs and this article should be helpful.
    • Set up auth strings in .env.local under GOOGLE_ID, GOOGLE_SECRET, SECRET keys.
    • Specify allowed email under ALLOWED_EMAIL (app is created to be used by one person and mail is just hardcoded).
  6. Now app can by run by npm run dev.

Deployment

You can use Vercel.