An open API service indexing awesome lists of open source software.

https://github.com/solaoi/co-metub

This is an application for multiple people to manage the stub APIs.
https://github.com/solaoi/co-metub

apis blitzjs co-metub docker dummy dummy-api dummy-server http json mock mock-api mock-server mocking rest stub stub-api stub-server stubbing xml

Last synced: 10 days ago
JSON representation

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

Awesome Lists containing this project

README

          

# **co-metub**

![license](https://img.shields.io/github/license/solaoi/co-metub)
[![CodeQL](https://github.com/solaoi/co-metub/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/solaoi/co-metub/actions/workflows/codeql-analysis.yml)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/solaoi/co-metub)](https://github.com/solaoi/co-metub/releases)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/solaoi?color=db61a2)](https://github.com/sponsors/solaoi)

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

## Getting Started

### Docker

All you have to do is the following.

```sh
# 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

```sh
# 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