Skip to content

purejgleason/example-vue-vite

Repository files navigation

Simple Vite Application

This is a simple Vite application with things like testing, proxying, etc working.

Getting started

Prereqs

  1. Install dependencies with npm i
  2. Ensure Docker desktop is installed
  3. Make sure you have a cloud function running and CLOUD_URL environment variable pointing at this service.
    1. This service should provide environment configuration in the form of a JSON object.

      {
        "auth0": {
          "domain": "...",
          "clientId": "...",
          "audience": "...",
          "defaultScope": "view:app"
        }
      }
      
  4. Generate the SSL cert and key using the script as ./proxy/gen-key-cert.sh

Run with Proxy

Using Vite

  1. Run with npx vite

Using Docker

  1. Run with ./run.sh

Configuring the Cloud endpoint

To configure the cloud endpoint that houses the environment information please change the value in docker-compose.yml

TODO

  • We need to get ssl working locally so that we can test using auth0

About

A simple app to demo how to use vue with vite.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published