https://github.com/mberlanda/impostor
A mock dynamic API server to perform integration testing and accelerate frontend development
https://github.com/mberlanda/impostor
Last synced: about 2 months ago
JSON representation
A mock dynamic API server to perform integration testing and accelerate frontend development
- Host: GitHub
- URL: https://github.com/mberlanda/impostor
- Owner: mberlanda
- Created: 2023-04-29T10:23:28.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-29T18:53:43.000Z (about 2 years ago)
- Last Synced: 2024-10-19T11:29:21.370Z (7 months ago)
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Impostor
Impostor is a mock dynamic API server to perform integration testing and accelerate frontend development.
The databases used by the application are in-memory concurrent safe maps.
## Setup
* Install go: https://go.dev/dl/
### Run unit tests
```
go test -v ./...
```### Run with docker
```
docker build -t impostor .
docker run -p 8080:8080 impostor
```and then visit http://localhost:8080/ping
### Resources
* https://gin-gonic.com/
* https://chemidy.medium.com/create-the-smallest-and-secured-golang-docker-image-based-on-scratch-4752223b7324
* https://dev.to/sreramk/go-loadanddelete-and-loadorstore-in-sync-map-why-are-they-needed-30f7
* https://blog.boot.dev/golang/golang-mutex
* https://dev.to/umschaudhary/blog-with-go-gin-mysql-and-docker-part-2-3k8n
* https://blog.logrocket.com/gin-binding-in-go-a-tutorial-with-examples/