Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blenderskool/mocktopus
🐙 AI powered CLI tool to generate mock data for anything!
https://github.com/blenderskool/mocktopus
ai cli code-generation gemini generator gpt mock openai protobuf retrieval-augmented-generation
Last synced: 8 days ago
JSON representation
🐙 AI powered CLI tool to generate mock data for anything!
- Host: GitHub
- URL: https://github.com/blenderskool/mocktopus
- Owner: blenderskool
- License: mit
- Created: 2023-04-02T09:56:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-03-27T17:26:00.000Z (8 months ago)
- Last Synced: 2024-10-31T09:50:25.030Z (15 days ago)
- Topics: ai, cli, code-generation, gemini, generator, gpt, mock, openai, protobuf, retrieval-augmented-generation
- Language: Go
- Homepage:
- Size: 96.7 KB
- Stars: 18
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mocktopus
🐙 GPT powered CLI tool to generate mocks for anything!
### Installation
**Note: This project requires your own API key for one of the supported AI models:**
- OpenAI: Can be found [here](https://platform.openai.com/account/api-keys).
- Google Gemini: Can be found [here](https://aistudio.google.com/).**Setup CLI**
1. Download the binary for your OS from the [releases page](https://github.com/blenderskool/mocktopus/releases/latest)
2. Rename the binary file to `mocktopus`
3. Copy the binary to `/usr/bin/` paths (for macOS, Linux). If you cannot copy the the binary to the directory, then update your `PATH` env variable to also include the directory where `mocktopus` binary is stored.
4. Proceed to adding the OpenAI/Gemini API key as an environment variable by following the steps in next section#### Add API key of an AI Model as an env variable
This example is for `zsh` shell, you can add it accordingly for other shell environments.
```bash
nano ~/.zshrc
```In the file that is opened, add the following line at the end
```bash
export MOCKTOPUS_OPENAI_KEY=""
export MOCKTOPUS_GEMINI_KEY=""
```Save the file and exit, then restart the terminal.
### Usage
```
mocktopus [global options] command [command options] [arguments...]Commands:
proto proto
placeholder
tests tests
persona
help, h Shows a list of commands or help for one command
```### Uninstall
1. Remove the `mocktopus` binary file
2. Optionally remove the env variables starting with `MOCKTOPUS`