Skip to content

Setup Vercel

André Kuhlmann edited this page Nov 3, 2021 · 6 revisions

This explanation shows you how you can set up the API included in this project on a free hosting provider called Vercel.

  1. Create an account or log in to Vercel https://vercel.com/dashboard
  2. Create a new project and select your thesis repository from your GitHub account.
  3. You will then be asked to configure the project.
    • FRAMEWORK PRESET: Other
    • ROOT DIRECTORY: Select the api/ folder
    • Environment Variables: In order for the API to know where to find your repository you need to set some variables.
      • GITHUB_TOKEN: Your generated token to allow the server to access your repository. GitHub new Personal Access Token. Make sure you enable repo
      • GITHUB_USERNAME: Your GitHub username
      • GITHUB_REPOSITORY: The name of your repository

In case the server responds with an error check if your environment variables are configured correctly and your View Functions Log has no thrown errors display.

Clone this wiki locally