Skip to content

This is an application for multiple people to manage the stub APIs.

License

Notifications You must be signed in to change notification settings

solaoi/co-metub

Repository files navigation

co-metub

license CodeQL GitHub release (latest by date) GitHub Sponsors

This is an application for multiple people to manage the stub APIs.

Getting Started

Docker

All you have to do is the following.

# Specify the port you want to provide
HOST_PORT=8080
# If you run this app on http://, you should set true
DISABLE_SECURE_COOKIES=false
# Let's enjoy!
docker run --init -e SESSION_SECRET_KEY="your random string of at least 32 bytes" \
-e DISABLE_SECURE_COOKIES=$DISABLE_SECURE_COOKIES \
-d --restart=on-failure:1 \
-p $HOST_PORT:3000 -v $(pwd)/data:/data ghcr.io/solaoi/co-metub:latest

Persist the stub data

Your stub data will be persisted under /data in the current directory.

See the stub data

# Specify the port you want to provide
HOST_PORT=3000
docker run --init -d -p $HOST_PORT:5555 -v $(pwd)/data:/data ghcr.io/solaoi/co-metub:latest \
blitz prisma studio

Usage

Create Project

Project is the place to manage your stubs.

Let's create the project with ADD button.

スクリーンショット 2021-09-18 0 42 26

スクリーンショット 2021-09-18 0 44 26

Create Stub

On Project, you could create stubs with ADD button.

スクリーンショット 2021-09-18 0 45 59

スクリーンショット 2021-10-11 22 38 27

Get Stub URL

You get the stub with the COPY button in Project or Stub.

Project

スクリーンショット 2021-09-18 0 48 55

Stub

スクリーンショット 2021-10-11 22 42 59