https://github.com/qualityshepherd/quote-api
A simple--if not silly--movie quote api that uses express and tests with node-fetch and tape
https://github.com/qualityshepherd/quote-api
Last synced: about 1 month ago
JSON representation
A simple--if not silly--movie quote api that uses express and tests with node-fetch and tape
- Host: GitHub
- URL: https://github.com/qualityshepherd/quote-api
- Owner: qualityshepherd
- Created: 2023-07-03T13:27:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-05T23:04:22.000Z (about 3 years ago)
- Last Synced: 2025-02-27T09:04:03.848Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 303 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/qualityshepherd/quote-api/actions/workflows/api.yaml)
# Quote API
A simple--_if not silly_--api that spits out random quotes from [Being There](https://www.imdb.com/title/tt0078841/).
## Setup
1. run `npm i`
1. edit `config.js` (file is --assume-unchanged)
## Run Server
1. run `npm run watch` while in development
1. run `npm start` for "production" (runs [pm2](https://github.com/Unitech/pm2))
## Stop Server
1. run `npm stop`
## Run Tests
> tests use [node-fetch](https://github.com/node-fetch/node-fetch) and run via [tape](https://github.com/ljharb/tape)
1. start api: `npm start`
1. run tests: `npm test`
1. stop api: `npm stop`