Skip to content

hutajoullach/nextjs-threejs-pin-dropping-app

Repository files navigation

Next.js, Three.js, pin dropping app

Simple three.js app to drop a pin with your choice of svg or emoji. Login using your Github account and add your pin.

Screen Shot 2023-05-31 at 3 31 40 PM

Screen Shot 2023-05-31 at 3 32 30 PM

Screen Shot 2023-05-31 at 3 35 00 PM

Screen Shot 2023-05-31 at 3 33 19 PM

Screen Shot 2023-05-31 at 3 34 02 PM

How to run the app?

  • run npm install
  • Signup and create an account for PlanetScale, Clerk, and Upstash if you don't have.
  • Create .env file and add "DATABASE_URL" for PlanetScale, "NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY" and "CLERK_SECRET_KEY" for Clerk, "UPSTASH_REDIS_REST_URL" and "UPSTASH_REDIS_REST_TOKEN" for Upstash.
  • run npx prisma studio to connect to Prisma db.
  • run npm run dev for the frontend.
pin-drop-demo-1.mp4
pin-drop-demo-2.mp4

Work in progress, scaffolding

  • Adding api routes to fetch data for weather, wildfire, and much more.
  • Zoom disable state for better scrolling experience.
  • Search modal, data table.

Screen Shot 2023-05-31 at 3 38 55 PM

Screen Shot 2023-05-31 at 3 40 25 PM

Screen Shot 2023-05-31 at 3 41 32 PM