A modern, fast code snippet sharing platform built with Go. Share, organize, and collaborate on code snippets.
- 🔐 Authentication: User authentication and session management.
- 🔗 Share Links: Public links.
- ⚡ Fast: Go backend with optimized database queries. Dynamic HTML templates for user interface.
- 🎯 API: RESTful API for integrations. CRUD operations for code snippets. Efficient request routing.
- Backend: Go 1.20+
- Database: PostgreSQL
- Frontend: HTML/CSS/Vanilla JS
- Go
- MySQL
- Clone the repository
git clone https://github.com/consdotpy/snippetbox.git
- Install dependencies
go mod download
- Set up your MySQL database using the provided SQL scripts in the
sql/
directory. Be sure to change credentials in thesql/create_user.sql
script before running it.
sudo mysql
source sql/*.sql
Check .env.example
for environment variables that need to be set. Then, run the application using Makefile
:
make run
To run quality control checks, execute:
make audit
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Distributed under the MIT License. See LICENSE
for more information.