Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/marcosx/golang-user-api
- Owner: MarcosX
- License: mit
- Created: 2024-04-10T20:25:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-01T18:20:41.000Z (10 months ago)
- Last Synced: 2024-11-30T00:17:49.383Z (2 months ago)
- Language: Go
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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_apidocker 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"
```