/langadventurebackend

Backend from Lang Adventure game. Utilizes "serverless" and is built on top of AWS services.

Primary LanguageJavaScript

#Lang Adventure Backend

Deploying function/endpoint

Go to the function folder and run the commands below.

Function: serverless function deploy

Endpoint: serverless endpoint deploy

Deploying resources (policies, etc):

Go to the project resources and execute:

serverless resources deploy

Testing the function

Go to the project root and execute:

sls function run <componentName>/<moduleName>/<functionName>

This command will use the event.json file as the input of the function.

Please use lint!

In order to keep the code clean and avoid "weird" behavior from js use lint to spot errors.

jslint --nomen '**/*.js'

To download jslint go here: https://github.com/reid/node-jslint

More documentation here:

http://docs.serverless.com/docs/commands-overview