1.0.0 • Published 4 years ago
postnord-ncp-modtagerflex-backend v1.0.0
postnord-ncp-modtagerflex-backend
** This is a template repository that is ment to be a kickstarter for new serverless projects. This is also one of the templates that marvin
uses for repository template generation.
Visual Studio Code (OSX, Linux, Windows) is recommended as IDE
Prerequisties
- node >= 8.10
Project Setup
- run
npm i
in root of project
Running and debugging lambdas locally
npm start
Will start a server on localhost:3000 that you can use like you would live.
there is no need to run this command again as it will automatically update on changes
in vscode press f5 and chose Debug to run local lambdas with debugger
Will also start the localhost:3000. Just like npm start
Invoking functions
serverless invoke local -f <functionName> -p <path to event.json>
Deploying serverless functions
When deploying via git the serverless functions will be deployed automatically via the bitbucket-pipelines.yml
file.
More info:
- https://nodejs.org/en/
- https://serverless.com/
- https://www.typescriptlang.org/
- https://webpack.js.org/
- https://palantir.github.io/tslint/
- https://www.typescriptlang.org/docs/handbook/integrating-with-build-tools.html#webpack
Known bugs
1.0.0
4 years ago