Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danwakeem/shopping-api
Serverless shopping api
https://github.com/danwakeem/shopping-api
Last synced: about 6 hours ago
JSON representation
Serverless shopping api
- Host: GitHub
- URL: https://github.com/danwakeem/shopping-api
- Owner: Danwakeem
- Created: 2018-07-07T15:09:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T19:51:03.000Z (almost 2 years ago)
- Last Synced: 2024-04-24T08:18:44.278Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 938 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shopping API Serverless
Trying to convert my estimate API to a serverless API.
## Build
Nothing is needed except `npm i`## Test
Run `npm test`
or `npm test:watch`## Config
There is a config file for `env` params in my dropbox :)## API definition
There is an API definition file in my dropbox :)## Deploy
These have all been updated to node.js 12 in IBM but not locally :)To login to IBM CLI
```
ibmcloud login
```To login to org/space
```
ibmcloud target ibmcloud target -o [email protected] -s Shopping
```To deploy update API
```
ibmcloud fn action update "shopping/updateById" build/PUT/id.zip --kind nodejs:12 -t 300000
```## TODO
* [x] Convert Loopback Mongo Query generator to function
* [x] GET: by userId
* [x] GET: by ID
* [x] DELETE: by Id
* [x] PUT: Update by ID
* [x] PUT: Update by ID (shared)
* [x] POST: Create list