Skip to content

LynnHaDo/Snip-Log

Repository files navigation

This is the frontend app for SnipLog, a platform for sharing, executing code snippets. AI integration to be added soon.

Getting Started

First, run the development server:

nvm use node # Node.js version ">=20.9.0" 
npm run dev

Whenever a schema needs to be changed, reactivate convex:

npx convex dev

Open 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.

Testing Stripe API locally

  1. Install Stripe CLI
brew install stripe/stripe-cli/stripe
  1. Log in
stripe login
  1. In a separate terminal (from your app dev run), start the webhook forwarder
stripe listen --forward-to http://localhost:3000/api/webhooks/stripe
  1. In your .env file, save your webhook secret and Stripe's secret key
STRIPE_SECRET_KEY=sk_test_...
STRIPE_WEBHOOK_SECRET=whsec_...

Testing code execution locally

CODE_EXECUTION_URL={frontend-base-url}/api/execute tsx tests/api/execute/route.test.ts

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors