Snip: The gamma variant of Pastebin

snip

? The gamma variant of Pastebin

Supabase Hackathon · Demo

✨ Team

Harsh Singh • Frontend (TypeScript) • GitHubTwitter

Ibrahim Hisham • Backend (Rust) • GitHubTwitter

? Quickstart

Run the website locally

git clone https://github.com/harshhhdev/snip.git

Setting up the development environment

cd snip

# Install deps
yarn

Setting up the database

NOTE: This project uses PostgreSQL on Supabase to store data. Things like authentication are handled by Supabase.

Currently, according to the Supabase documentation, there isn’t any ‘right’ way to do migrations, however you can initialise your database with the initdb.sql file located at the root of the project.

Authentication

This application uses Supabase’s Authentication with the GitHub and GitLab. Refer to the linked guides for how to create an OAuth application and connect it with your account.

Starting server

# Start the server
yarn dev

Server should now be running on localhost

If you would also like to run the Netlify serverless functions, you can start with the netlify dev command.

# Start the Netlify server
netlify dev

…and your local development server should now be running on localhost:8888.

? Tools Used

Frontend

Backend

Miscellaneous

? Contributing

After setting up the project, and making changes:

git add .
git commit -m "commit message"
git push YOUR_REPO_URL YOUR_BRANCH

GitHub

View Github