Verba - Frontend Documentation
May 15, 2024 ยท View on GitHub
Verba's Frontend is a NextJS application used together with TailwindCSS and DaisyUI.
๐ Setting Up the Frontend
To get your local copy of the Verba frontend up and running, please follow these simple steps:
- Clone Repository
git clone https://github.com/weaviate/Verba.git
-
Node.js Requirement:
- Confirm that Node.js version
>=21.3.0is installed on your system. If you need to install or update Node.js, visit the official Node.js website.
- Confirm that Node.js version
-
Installation:
- Navigate to the frontend directory:
cd frontend - Run
npm installto install the dependencies required for the project.
- Navigate to the frontend directory:
-
Development Server:
- Launch the application in development mode by executing
npm run dev. - Open your web browser and visit
http://localhost:3000to view the application.
- Launch the application in development mode by executing
๐ฆ Building Static Pages for FastAPI
If you wish to serve and update the frontend through FastAPI, you need to build static pages:
- Build Process:
- Execute
npm run buildto generate the static production build. The output will be directed to the FastAPI folder configured to serve the static content.
- Execute