Instantly create mock endpoints for testing your frontend applications locally. Built with Svelte and Go.
Fill out a simple form to create a new endpoint:
Managing existing endpoints with a simple dashboard:
And that's it.
Recommended
-
Run the following command in the root folder of this project:
docker compose up -d
-
Open Spocker by navigating to the following URL in a browser:
http://localhost:5000
-
Call new endpoints with the following base URL:
http://localhost:5001
- Run the following command in the root folder of this repository:
gin --appPort 5001 --port 5005 --immediate --build . --path main.go --bin spocker
- Run
npm run dev
in theweb
folder of this repository. Change the baseUrl inApp.svelte
andEndpointCard.svelte
as needed. - Make sure your local instance of MongoDB is running. Change the connection string in
mongodb.go
as needed.
Priority
- Empty Response
- Update
Future
- Expected authentication for mock endpoints
- Logging