To get started, follow the below steps:
-
Create an
.envfile by copying theSAMPLE_envfile and add the model store provider you'll be using (e.g.HUGGING_FACEorOPEN_AI) and the API keys for the models you are going to use -
Install packages
-
Run the backend server that will start with a default port of
3100yarn start-server
-
Run the frontend server that will start with a default port of
5173.yarn start
Note: You can use the
-pflag to specify a port for the frontend server. To do this, you can either runyarn startwith an additional flag, like so:yarn start -- --port 3000
Or, edit the
startscript directly:vite --port 3000
Additional scripts are provided to prepare the app for production
yarn build— This will output a production build of the frontend app in thedistdirectory.yarn preview— This will run the production build of the frontend app locally with a default port of5173(note: this will not work if you haven't generated the production build yet).