8
back4app.com Build your express web app using Cloud Code

Build your express web app using cloud code

Embed Size (px)

Citation preview

back4app.comBuild your express web app

using Cloud Code

Step 1: Enable your domain nameon Back4app

• Contact our support service to enable your domain name.

• We will send you the url once the domain name is ready.

• You can read the original publication on:• http://docs.back4app.com/docs/integrations/build-your-express-web-app-usi

ng-cloud-code/

Step 2: Prepare your express web app Code

• In this article, I use the hello world official express web app example.

• For more detail about expressjs, go to ExpressJS.

• And then upload your code to Cloud Code

Step 2: Prepare your express web app Code

How to use the Parse Cloud Functionwith expressJS?

• This is the sample code of how to use Parse Cloud Function

How to use the Parse Cloud Functionwith expressJS?• You can access it via http://”AppName”.back4app.io/someFunction

• You’ll reach http://parseapi.back4app.com/functions/someFunction with your credentials

• Which is similar to how you test your cloud code with Restful API.

Step 3: Test it

Step 3: Test it

• In the server log.