Basic Snap Camera-Kit Deployment & Integration guide. For more details and documentation please check Docs Snap CameraKit WebSDK
In this guide, we also deploy this project via vercel using with NextJS. For see results, please check Demo app below.
Please first allow camera access and snap legal terms.
next-app-egemengulpinar.vercel.app
Ekran.Kaydi.2023-05-29.22.38.54.mov
Install Snap Camera-Kit package :
npm install @snap/camera-kit
npm install
First insert your token into .env file that are taken by camera-kit.snapchat.com
- API TOKEN
- LENS ID
- LENS GROUP ID
npm run build
npm start
first install dependencies
npx create-next-app@latest
cd next-app
npm install @snap/camera-kit
npm install
sudo npm i -g vercel
for run locally to check
npm run dev
deploy to vercel
vercel
I know there's a security issue with the token being visible when you're inspect the page.There might be create server-client communication to hide token info.
If you contribute and fix this issue feel free to pull requests.
You can contact with me via e-mail & discord
- [email protected]
- egemengulpinar#3536