This is text sharing web application complete with a RESTful API.
This API uses Docker and the Official Postgres DB image. The version is 13.0, the latest release.
Installing package dependencies
# Go packages
go get -u ./...
# Node packages
npm installStarting your Postgres DB container:
docker run --name postgres -p 5432:5432 -e POSTGRES_DB=pastebin -e POSTGRES_PASSWORD=password -e POSTGRES_USER=postgres postgresThen applying Goose migrations:
cd migrations/
goose postgres "user=postgres dbname=pastebin sslmode=disable password=password" upFinally starting the application:
go run *.goYou can then view this application at http://localhost:3333/
Supplied by https://material.io/.