Requirements:
- Go 1.19+
- Node 18+
- make gcc
- mkcert
To start developing stuff reproduce this steps:
- Generate local self signed certificates with mkcert -
cd scripts && mkcert localhost && cd ..
- Run
make prepare
to install deps and all stuff - Run local MongoDB
make db
. - Now copy the ./config/summary-extension.config.example to ./config/development.config.yaml and fill in the keys for google and openai
- In a separate terminal window run
make backend
. The backend will be available at http://localhost:8080. - Now add the MODE=development to
./public/extension-frontend/.env
so NextJS can proxy all /api/v1 requests to localhost:8080. - In a separate terminal window run
make frontend
. The frontend will be available at https://localhost:3000 - Make sure, you have changed the
https://api.clipcap.app
tohttps://localhost:3000
inside ./public/extension-wrapper/src/content_scripts/youtube.tsx, and then Runmake extension
to generate extensions for development. - Now open your browser (Chrome or Firefox) and load unpacked extension from
./dist/public/chrome-extension
for Chrome and./dist/public/firefox-extension
for Firefox.
After that you will be able to use the extension in browser with local frontend development server from NextJS.