lollms-webui/web
2023-05-05 17:27:00 +03:00
..
dist latest build 2023-05-05 17:27:00 +03:00
public Added new ui code 2023-05-02 22:53:27 +02:00
src many new quality of life features 2023-05-05 17:22:46 +03:00
.env added baseurl for api 2023-05-04 09:59:12 +03:00
.eslintrc.cjs Added new ui code 2023-05-02 22:53:27 +02:00
.gitignore edit title, new discussion, remove discussion 2023-05-04 17:44:02 +03:00
.prettierrc.json Added new ui code 2023-05-02 22:53:27 +02:00
index.html Added new ui code 2023-05-02 22:53:27 +02:00
LICENSE Added new ui code 2023-05-02 22:53:27 +02:00
package-lock.json Lots of small changes 2023-05-04 00:00:07 +03:00
package.json Lots of small changes 2023-05-04 00:00:07 +03:00
postcss.config.js Added new ui code 2023-05-02 22:53:27 +02:00
Readme.md moved web ui todos to a new doc 2023-05-05 09:48:33 +03:00
tailwind.config.js Lots of small changes 2023-05-04 00:00:07 +03:00
vite.config.js Lots of small changes 2023-05-04 00:00:07 +03:00

GPT4ALL-UI Web interface VUE3

Dependencies for development

You mus have Node.js installed on your computer.

git clone repo_URL
cd into-this-repo-dir
npm install

After that to run development server locally and test the web page at http://localhost:5173/:

npm run dev

To connect to GPT4ALL-UI API server you need to enter its URL in the .env or make a copy of .env file and name it .env.local. This .env.local is added to .gitignore. All http requests made to GPT4ALL-UI api has to have /api/ prefix. This prefix gets rewritten in the vite.config.js file. Make changes to your usecase in the .env.local file.

Once UI id done you can build static files for serving.

npm run build

This will create /dist/ folder with all the files. Also the build will show you if there are errors or not in your vue code.

Make sure you test the static files too, because sometimes the builder dont catch all the errors, and if a component is not refernced it might not load in the built version, but it loads fine in development environment

Overview of used dependencies and development

  • Nodejs
  • vue
  • feather-icons
  • axios
npm init vue@latest
cd gpt4all-ui-vue
npm install
npm run format
npm install axios dotenv
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
npm install feather-icons --save

Running dev environment and building commands

To lint: (not very used)

npm run lint

To run test:

npm run dev

To build static files

npm run build