How to Deploy Node JS Application on Parse Server?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13677
    Lisa
    Participant

    Hi Everyone!

    I am new to programming and I recently started my scripting course for JS backend technologies. I picked Node.js in this regard and almost ended the scripting work. Now, I want to deploy my Node.js application on a free and cloud server.

    I found Heroku and Parse are two good solutions but Heroku is no longer free now. So, is there any way to show how to deploy Node JS app on Parse?

    #13680
    PeekTimes
    Keymaster

    Hey Lisa! Your question sounds interesting. Undoubtedly, there are several platforms including Heroku that permits businesses and developers to set up an application on Parse Server. Likewise, it is seamless to deploy Node.js applications on Heroku.

    Hereof, after creating an app and choosing a database on Heroku, you just connect with GitHub and integrate with Parse Server or parse-server-example.

    You can also use standard REST API to deal with this situation. Here is an example:

    curl -X POST \
    -H "X-Parse-Application-Id: myAppId" \
    -H "Content-Type: application/json" \
    -d '{}' \
    https://example.herokuapp.com/parse/functions/hello
    ..
    {"result":"Hi"}%

    On the contrary, you can also utilize Back4App to deploy the Node.js app on Parse Server. Mainly, Back4App allows you to proceed with a free plan but Heroku is paid now. Although this source can help you to provide all details about deploying a Node.js app but if I share the core points then see the following steps:

    – Create a new app on Back4App and give it a name
    – After proceeding with the cloud code function, you can act upon this structure:

    nodejs-back4app/ ├── cloud/ │ └── main.js ├── public/ │ └── index.html ├── .parse.local └── .parse.project

    – Now, you can activate the Back4App hosting
    – Modify directly with the cloud
    – Select database, and app logic and deploy the app

     

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Copyright © 2020 - 2022 PeekTimes.com. All Rights Reserved.

Log in with your credentials

Forgot your details?