https://github.com/jeffnyman/prism-learning
Pedagogical Exercise for Learning Prism
https://github.com/jeffnyman/prism-learning
Last synced: 3 months ago
JSON representation
Pedagogical Exercise for Learning Prism
- Host: GitHub
- URL: https://github.com/jeffnyman/prism-learning
- Owner: jeffnyman
- Created: 2024-08-09T12:46:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-09T12:48:02.000Z (10 months ago)
- Last Synced: 2025-01-18T00:16:44.141Z (5 months ago)
- Language: JavaScript
- Size: 25.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Prism Test
This repo is not ready for prime time! This is a very simple repo to show using Prism.
```shell
npm ci
```Run a mock of the OpenAPI spec:
```shell
npx prism mock spec.yml
```Once that's running, you can test the mock server using a tool like Postman or curl:
```shell
curl http://localhost:4010/testing
```When you have the server running, you can run the tests:
```shell
npx mocha api.test.js
```