chore: update README.md
This commit is contained in:
parent
5869936dfd
commit
cb3faf6036
18
README.md
18
README.md
|
@ -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.
|
||||
|
|
|
@ -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 #######
|
||||
|
|
Reference in New Issue