Skip to main content

Frontend Prereqs

This page outlines the tools and setup required before running any OSU Sustainability Office frontend projects locally.

What you need

IDE

Use any editor you like. VS Code works great.

  • If using VS Code, make sure you install extensions that are relevant to the repository (Vue, ESLint, Prettier, etc.)

NVM / Node.JS

Using a version manager makes switching Node versions seamless.

Yarn (required only for wiki development)

Install after Node is set up. You may have to re-run this if you switch NodeJS versions with NVM as listed below.

  • npm install --global yarn

Running the Frontend

  • If you are either an open source contributor without access to local backend, or you are fixing a frontend-only issue (our production API backend is much faster):
    • Open both of these files in your IDE:
      • .env.development
      • .env.production
    • Change VUE_APP_ROOT_API in .env.development to match .env.production.