This is the frontend app for SnipLog, a platform for sharing, executing code snippets. AI integration to be added soon.
First, run the development server:
nvm use node # Node.js version ">=20.9.0"
npm run devWhenever a schema needs to be changed, reactivate convex:
npx convex devOpen http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
- Install Stripe CLI
brew install stripe/stripe-cli/stripe
- Log in
stripe login
- In a separate terminal (from your app dev run), start the webhook forwarder
stripe listen --forward-to http://localhost:3000/api/webhooks/stripe
- In your
.envfile, save your webhook secret and Stripe's secret key
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...
CODE_EXECUTION_URL={frontend-base-url}/api/execute tsx tests/api/execute/route.test.ts