- 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
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.
yarn dev
yarn build
For database, heroku provided managed postgres database can be used, checkout this guide to setup one.
Next.JS app deployed on vercel. You can also deploy with below button.