chore: update README.md

This commit is contained in:
Dawid Wysokiński 2022-09-20 18:53:41 +02:00
parent 5869936dfd
commit cb3faf6036
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 3 additions and 16 deletions

View File

@ -1,20 +1,6 @@
# zdamegzaminzawodowy.pl - backend
# [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl) - backend
This project contains the API and other core infrastructure items needed for all [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl) apps.
## Development
### Prerequisites
1. Golang
2. Docker + docker-compose
3. make
### Installation
1. ``git clone git@github.com:zdam-egzamin-zawodowy/backend.git``.
2. ``cd backend && cp .env.example .env.local``
3. ``make docker-compose-up``
4. Run the app - ``go run ./cmd/server/main.go``.
The core infrastructure backend (API, Docker etc) for [zdamegzaminzawodowy.pl](https://zdamegzaminzawodowy.pl)
## License
Distributed under the MIT License. See ``LICENSE`` for more information.

View File

@ -15,6 +15,7 @@ ARG VERSION="0.0.0"
RUN apk --no-cache add musl-dev gcc build-base
RUN go install github.com/99designs/gqlgen@v0.14.0
RUN go generate ./...
ENV CGO_ENABLED=0
RUN go build -ldflags="-X 'main.Version=$VERSION'" -o zdamegzawodowy ./cmd/server
######## Start a new stage from scratch #######