Optic requires Node v12+, and we'll install a compatible version as a requirement via your package manager of choice. Depending on your installation method and node version management process, it's possible to get into a state where an incompatible version of Node is running. If you need to check,
api --version will tell you both the Optic CLI and Node version running. If you run into an issue here, please let us know.
Show your appreciation with a ⭐ on GitHub
Initialize Optic in your API's root directory:
Then, set up an
api start alias. This will allow you to observe traffic sent to your API while testing and interacting with the project, and is a key component of collecting enough information to establish the baseline behavior of your API today. Here's a few examples of how you can get started:
- Recommended for remote API projects Have Optic intercept your API traffic seamlessly
- Recommended for local development Have Optic start your API for you and intercept traffic
- Set up Optic as a proxy for your environment
Some of the most valuable contributions to an open source project are written in prose, not code. Developers taking the time to share their feedback, perspective, and ideas with the broader community are the oxygen of big projects like Optic.
Jaap van Hardeveld
🎨 💻 🐛