api-simulator

(โ˜… 169)

Not just a mock server. Turn an OpenAPI spec into TypeScript-based simulation, with state management, hot reload, and a REPL.

  • .gitignore
  • .mise.toml
  • .putout.json
  • .swcrc
  • .yarnrc.yml
  • _config.yaml
  • AGENTS.md
  • CLAUDE.md
  • CNAME
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • counterfact.svg
  • eslint.config.js
  • jest.config.js
  • jest.mutation.config.js
  • License.md
  • package.json
  • README.md
  • renovate.json
  • SECURITY.md
  • stryker.config.mjs
  • tsconfig.base.json
  • tsconfig.eslint.json
  • tsconfig.json
  • tsconfig.tsd.json
  • typescript-badge.png
  • yarn.lock

# Installation Guide

1. Get the code
git clone https://github.com/counterfact/api-simulator

Downloads the entire project code from GitHub to your computer.

cd api-simulator

Moves into the project folder you just downloaded.

2. Node.js

Easy Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Node.js Node.js must be installed to use npm. The LTS version is recommended.
npm install

Downloads and installs the libraries listed in package.json.

npm start

Starts the development/run server.

โœ… After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.

3. Python

Easy
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Python 3 On Windows, be sure to check 'Add Python to PATH' during installation.
pip install -r test-black-box/requirements.txt

Installs the Python libraries listed in requirements.txt (or similar).

python <์‹คํ–‰ํ•  ํŒŒ์ผ๋ช…>.py # README์—์„œ ์ •ํ™•ํ•œ ์‹คํ–‰ ํŒŒ์ผ๋ช…์„ ํ™•์ธํ•˜์„ธ์š”

Runs the Python script (or module).

โœ… If it runs without errors and prints output in the terminal, it worked.
// repository documentation