Danwakeem / shopping-api

Serverless shopping api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 danwakeem@gmail.com -s Shopping

To deploy update API

ibmcloud fn action update "shopping/updateById" build/PUT/id.zip --kind nodejs:12 -t 300000

TODO

  • Convert Loopback Mongo Query generator to function
  • GET: by userId
  • GET: by ID
  • DELETE: by Id
  • PUT: Update by ID
  • PUT: Update by ID (shared)
  • POST: Create list

About

Serverless shopping api


Languages

Language:JavaScript 93.3%Language:Shell 6.7%