This is a monorepo for the gpthangout project.
It was built with the next+expo+solito starter template.
An OpenAI API key is required. Check out the OPENAI_API_KEY env var in the .env file.
A Google Cloud API key is required. Check out the GOOGLE_API_KEY env var in the .env file.
-
Install npm - nvm and node version 18.14.2 are recommended (this is the LTS version as of June 25 2023)
-
Make sure npm is installed. You can run
npm -v
to check if it's installed. -
Install yarn -
npm install --global yarn
-
Install the dependencies - Simply run
yarn
in the root folder of this project. -
Run the project - Run
yarn web
in the root folder of this project.
In the apps/expo directory there's code to run this project on Android and iOS. It's currently not working, and I have no plans to fix it atm.
- Setting up env vars for both native and web is a little different than usual. See TAMAGUI_TARGET for an example.
Run individual test files with:
npx jest path/to/testFile.test.ts --watch
e.g. go into the apps/next folder, and run:
npx jest lib/babylonjs/__tests__/utils.test.ts --watch
The model used in this project is a VRoid model.
For more info on how I set up the model and anims, check out the following babylonJS forum thread.
Reduce png image quality and size:
pngquant --quality 10-80 --speed 1 --output output_reduced0.png --force Image_0.png