https://github.com/apolzek/pastebomb
:bomb: Project that simulates the backend of the pastebin website
https://github.com/apolzek/pastebomb
air docker gin-gonic jwt migrate mysql
Last synced: 5 months ago
JSON representation
:bomb: Project that simulates the backend of the pastebin website
- Host: GitHub
- URL: https://github.com/apolzek/pastebomb
- Owner: apolzek
- Created: 2023-09-13T12:41:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-09T23:02:23.000Z (about 2 years ago)
- Last Synced: 2024-05-10T00:42:30.805Z (about 2 years ago)
- Topics: air, docker, gin-gonic, jwt, migrate, mysql
- Language: Go
- Homepage:
- Size: 58.5 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Audit: audit.log
- Security: security/auditlog.go
Awesome Lists containing this project
README
# pastebomb
### Run with docker compose
Up app and database
```sh
docker-compose --profile all up
```
### Run app localy
Up database and start app
```sh
docker-compose --profile depends up
go mod tidy
go run cmd/main.go
# or
air
```
> http://localhost:8000/health
Run migrations
```sh
migrate -path database/migrations/ -database "mysql://user:1234@tcp(0.0.0.0:3306)/go_gin_gonic?charset=utf8mb4&parseTime=True&loc=Local" up
```
Run tests (*optional*)
```sh
go test -count=1 ./... -v
```