Skip to content

michaeldfaber/spocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spocker

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:

Spocker Form

Managing existing endpoints with a simple dashboard:

Spocker Dashboard

And that's it.

Spocker Postman Example

Setup

Run with Docker Compose

Recommended

Downloads

Instructions

  1. Run the following command in the root folder of this project:

    docker compose up -d

  2. Open Spocker by navigating to the following URL in a browser:

    http://localhost:5000

  3. Call new endpoints with the following base URL:

    http://localhost:5001

Run without Docker

Downloads

Instructions

  1. Run the following command in the root folder of this repository:
gin --appPort 5001 --port 5005 --immediate --build . --path main.go --bin spocker
  1. Run npm run dev in the web folder of this repository. Change the baseUrl in App.svelte and EndpointCard.svelte as needed.
  2. Make sure your local instance of MongoDB is running. Change the connection string in mongodb.go as needed.

Backlog

Priority

  • Empty Response
  • Update

Future

  • Expected authentication for mock endpoints
  • Logging

About

Mock API Tool

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors