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.
- Host: GitHub
- URL: https://github.com/solaoi/co-metub
- Owner: solaoi
- License: mit
- Created: 2021-09-13T15:13:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-02T02:07:16.000Z (almost 2 years ago)
- Last Synced: 2024-05-03T02:34:52.176Z (almost 2 years ago)
- Topics: 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
- Language: TypeScript
- Homepage:
- Size: 3.76 MB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# **co-metub**

[](https://github.com/solaoi/co-metub/actions/workflows/codeql-analysis.yml)
[](https://github.com/solaoi/co-metub/releases)
[](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.

### Create Stub
On Project, you could create stubs with ADD button.

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

#### Stub