Skip to content

DNI9/snipshare

Repository files navigation

Logo

SnipShare

Create, Share and explore code snippets
Open live app »

NextJS next-auth chakra ui Prisma typescript

✨ Features

  • Oauth with Github
  • CRUD with snippet
  • Copy, Fork Snippet
  • Share snippet publicly, default private
  • Embed snippet (TODO)
  • Like other's snippets
  • Group snippets with collections
  • CRUD with collections
  • Search public snippets
  • Public profile viewing
  • Pagination

🧑‍💻 Run locally

Setting up environment

Copy env example file and replace with your env variables.

cp .env.example .env

Checkout NextAuth guide to generate github tokens.

For database create postgres database with below command. PostgreSQL must be installed locally or use heroku managed database, see deployment guide.

createdb snipshare

Checkout prisma docs to setup database url.

Run Development server

yarn dev

Build production app

yarn build

🚀 Deployment

Setting up a database

For database, heroku provided managed postgres database can be used, checkout this guide to setup one.

Deploy Next app

Next.JS app deployed on vercel. You can also deploy with below button.

Deploy with Vercel

Releases

No releases published

Packages

No packages published

Languages