This app will be a small scale reproduction of an existing application (Spravato Navigator). The basic goal will be to reproduce as much of the core functionality in a small amount of time
Install dependencies with npm install
(or pnpm install
or yarn
)
First you'll need to make a cosmos database in azure if you wish to store your data online. Additionally the data is stored in an indexeddb. You'll need to make an .env file on the root level containing the following variables
VITE_ENDPOINT=CosmosDatabaseEndpointUrl
VITE_KEY=CosmosAccessKey
VITE_DATABASE=DatabaseName
VITE_CONTAINER=ContainerName
Start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of the app:
npm run build
You can preview the production build with npm run preview
.
To deploy your app, you may need to install an adapter for your target environment.