2024-04-08 17:14:44 -07:00
|
|
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
|
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
|
|
|
|
|
|
|
|
|
|
- [Skyvern Frontend](#skyvern-frontend)
|
2024-05-09 20:21:13 +03:00
|
|
|
- [Quickstart](#quickstart)
|
|
|
|
|
- [Populate env file](#populate-env-file)
|
2024-04-08 17:14:44 -07:00
|
|
|
- [Development](#development)
|
|
|
|
|
- [Build for production](#build-for-production)
|
|
|
|
|
- [Preview the production build locally](#preview-the-production-build-locally)
|
|
|
|
|
|
|
|
|
|
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
|
|
|
|
|
2024-03-20 21:09:47 +03:00
|
|
|
# Skyvern Frontend
|
|
|
|
|
|
2024-05-09 20:21:13 +03:00
|
|
|
## Quickstart
|
|
|
|
|
|
|
|
|
|
### Populate env file
|
|
|
|
|
|
|
|
|
|
Copy example env file:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
cp .env.example .env
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Populate `VITE_SKYVERN_API_KEY` with your API key.
|
|
|
|
|
|
|
|
|
|
Then run:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm install
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm start
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This will build the app and serve from port 8080.
|
|
|
|
|
|
2024-03-20 21:09:47 +03:00
|
|
|
## Development
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm run dev
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This will start the development server with hot module replacement.
|
|
|
|
|
|
|
|
|
|
## Build for production
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm run build
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
This will make a production build in the `dist` directory, ready to be served.
|
|
|
|
|
|
|
|
|
|
## Preview the production build locally
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npm run preview
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
or alternatively, use the `serve` package:
|
|
|
|
|
|
|
|
|
|
```sh
|
|
|
|
|
npx serve@latest dist
|
|
|
|
|
```
|