Skip to content

Setup Guide

Get Skigk Søkeapp running in 5 minutes!

Prerequisites

  • Node.js 18+ and npm
  • Google Account with access to Google Workspace
  • Admin access to Google Cloud Console (for OAuth setup)

Step 1: Clone Repository

git clone https://github.com/skigk-soekeapp/skigk-søkeapp.git
cd skigk-søkeapp

Step 2: Install Dependencies

npm install

Step 3: Configure Environment

Create .env.local in the project root:

# From Google Cloud Console
VITE_GOOGLE_CLIENT_ID=YOUR_CLIENT_ID.apps.googleusercontent.com
VITE_GEMINI_API_KEY=YOUR_GEMINI_API_KEY

See Google Cloud Configuration for detailed setup.

Step 4: Run Development Server

npm run dev

The app will be available at http://localhost:4200

Step 5: Test the App

  1. Click "Logg inn med Google" (Sign in with Google)
  2. Authenticate with your Google Workspace account
  3. Try searching for a file name
  4. Click on a file to see the preview link

Building for Production

npm run build

Production build will be in dist/ folder.

What's Next?

Troubleshooting

"Cannot find module" error

Make sure you ran npm install and have Node.js 18+

Search returns no results

Check that your Google Account is added to the Shared Drive. See Shared Drives Setup

OAuth authentication fails

Verify your VITE_GOOGLE_CLIENT_ID and that OAuth scopes include drive.readonly