Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ak1m1tsu/pastebin
pastebin clone
https://github.com/ak1m1tsu/pastebin
docker go grafana nginx pastebin postgresql prometheus redis
Last synced: about 1 month ago
JSON representation
pastebin clone
- Host: GitHub
- URL: https://github.com/ak1m1tsu/pastebin
- Owner: ak1m1tsu
- Created: 2023-10-10T15:05:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T06:01:47.000Z (about 1 year ago)
- Last Synced: 2024-11-14T13:22:55.091Z (2 months ago)
- Topics: docker, go, grafana, nginx, pastebin, postgresql, prometheus, redis
- Language: Go
- Homepage: https://pastebin.com
- Size: 304 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pastebin
## How to run?
Rename `.env.example` to `.env` and run next command:
```shell
make docker/up
```Then in `postgres` container shell run SQL commands from `schema/schema.sql`
```shell
docker compose exec postgres psql -U pastebin -d pastebin
```Next run migrations:
```shell
migrate -path=./migrations -database 'postgres://pastebin:pastebin@localhost:5432/pastebin?sslmode=disable&search_path=public' up
```Finally go to `localhost:8085/api/v1/swagger/index.html` to see swagger API docs.