This app plays around with serverless plugins.
Typescript Serverless:
- serverless-plugin-typescript
- serverless-offline-sns
- serverless-offline
A dummy MongoDB is setup in Atlas for prototyping. Cluster: Order Database: order Collection: order-demo
$ npm install# development
$ serverless offline start
# this will start local server with http://localhost:3000/ as endpointTerminal / command prompt would show logs
# unit tests
$ npm testAssuming integration test will be run in actual environment. To simulate in local, open 2 terminals:
# run this in terminal 1
$ serverless offline start# run this in terminal 2
$ npm run start:integrationAfter service is started, you may start to test against the endpoints.
This application is built with Visual Studio Code and test with extension REST Client.
Alternately, any other REST client can be used for testing as well, like POSTMAN.
Please refer to rest-client.http for list of endpoints