**Archived: This repository was merged into the bedhost
repository, under the ui
folder.
This repository contains the source files for bedhost user interface written in React and built with Vite.
- Make sure bedhost FastAPI server is running at port 8000
- Install node module dependencies defined in
package.json
npm install
- Start development server on port 3000 by running the start react script (defined in
package.json
).
npm run dev
- Open http://localhost:3000 to view it in the browser.
You can then develop the app by editing the source in the /src
subfolder. Changes made in ./src
be reflected in real time.
To test the building process, you can build the app for production to the ./build
folder using npm run build
.
If you wanted, you could take the contents of the ./build
directory push these to a web host; in the past, we would copy these to bedhost/bedhost/static/bedhost-ui
to deploy with the server.
However, we are using an automated deployment with cloudflare (see below).
The actual deployment happens via a webhook to cloudflare. Pushes to the repository trigger cloudflare to re-build and re-deploy the static site using Cloudflare Pages.