Tagged: deploy node.js app, node.js app deployment
- This topic has 1 reply, 2 voices, and was last updated 2 years ago by PeekTimes.
- AuthorPosts
- December 18, 2022 at 2:59 pm #13677LisaParticipant
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?
December 18, 2022 at 6:11 pm #13680PeekTimesKeymasterHey 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 - AuthorPosts
- You must be logged in to reply to this topic.