Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marcosx/golang-user-api

Golang API with foundational functionality for user signup, update, etc
https://github.com/marcosx/golang-user-api

Last synced: 14 days ago
JSON representation

Golang API with foundational functionality for user signup, update, etc

Awesome Lists containing this project

README

        

# golang-user-api
Golang API with foundational functionality for user signup, update, etc

# Run tests

```
go test ./...
```

# Run container locally

```
docker build . -t local/golang_user_api

docker run -p 8080:8080 local/golang_user_api
```

# Run API locally

```
go run cmd/main.go
```

# Build api

```
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o build/golang_user_api cmd/main.go
```

# Login with test credentials

```
curl -X POST http://localhost:8080/login \
-d '[email protected]&password=pass' \
-H "Content-Type: application/x-www-form-urlencoded"
```