Skip to content

Valynt/VOSAcademy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VOS Academy

Documentation for running and contributing to the Vite + React TypeScript app.

Setup

  • Install Node.js 18+ and npm.
  • Install dependencies:
    npm install

Development scripts

The project uses npm scripts for common tasks:

Command Purpose
npm run dev Start the Vite dev server with hot reloading.
npm run build Type-check and build the production bundle.
npm run preview Serve the built app locally to verify the production output.
npm run test Run the unit test suite with Vitest.

Environment variables

Copy .env.example to .env.local (Vite) or .env for server-side scripts, then fill in the values. Alternatively, export variables in your shell before running commands. Relevant keys:

Variable Description
VITE_OAUTH_PORTAL_URL Base URL for the OAuth portal used to generate login links.
VITE_APP_ID Application identifier passed to the OAuth portal.
DATABASE_URL Connection string for MySQL used by server-side data utilities and seed scripts.
OWNER_OPENID Owner OpenID value used by backend utilities.
NODE_ENV Environment mode; defaults to development if not set.

Secrets and credential handling

  • Do not commit real secrets or production credentials. The .env.example file documents required keys with safe placeholders.
  • Store real values outside of version control (for example, through deployment-time environment variables or a secrets manager).
  • Rotate and revoke any credentials that are accidentally exposed in a working copy or build log.

How to run the app

  1. Configure environment variables.
  2. Start the dev server:
    npm run dev
  3. Open the URL printed by Vite (default http://localhost:5173).

To preview the production build locally after building:

npm run build
npm run preview

Tests, linting, and builds

  • Tests: npm run test
  • Lockfile lint: npm run lint:lockfile
  • Lint: Run ESLint directly (a script is not yet defined):
    npx eslint .
  • Build: npm run build

About

No description, website, or topics provided.

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors