SnippetBox is a simple web application for storing and sharing text snippets on the web built with Go and MongoDB.
- Clone the repository:
git clone https://github.com/ashvwinn/snippetbox-mongo.git
cd snippetbox-
Set environment variables (look at .env.example for reference)
-
Setup database with Docker Compose:
docker compose up -d- Start the application:
With
goor withair
air
# or
go run ./cmd/web
# or
go build -o tmp/main ./cmd/web
./tmp/main