SnippetBox is a web application that allows users to create, store, and manage code snippets.
- User authentication and session management
- CRUD operations for code snippets
- Dynamic HTML templates for user interface
- Efficient request routing
- 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.