Skip to content
This repository has been archived by the owner on Sep 19, 2022. It is now read-only.

Latest commit

 

History

History

app

Class Express App

This is a PWA to help users find and attend classes.

Project setup

ENV needed

There are some env variables that need to be set for this app to work. Note that these variables are all prefixed with VUE_APP_ to ensure that the Vue CLI will pass them in during the build process.
The values needed are

  • VUE_APP_apiUrl
    • Base URL of the API server
  • VUE_APP_Algoliasearch_ID
    • ID of the Algolia Search project
  • VUE_APP_Algoliasearch_Key_SearchOnly
    • Search only API key for algolia
  • VUE_APP_STRIPE_PUBLISHABLE_KEY
    • Used to create the stripe object with the "loadStripe" method

Installation

# Install all dependencies, including devDependencies, for development use
npm install

# Install only the project dependencies
npm install --production

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Test production build locally

# Run local server over HTTP
npm run local:http


# Run local server over HTTPS, generating cert first
openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout ./dist/key.pem -out ./dist/cert.pem
npm run local:https

Run your tests

npm run test

Lints and fixes files

npm run lint

Notes