Hosting options for Node JS app

Highlighted
Tourist
7 0 4

Hey all!

 

Quickly browsed the tutorial here https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react and I've got a newbie question.

 

The tutorial has you create a custom Zeit/Koa-based server.js https://developers.shopify.com/tutorials/build-a-shopify-app-with-node-and-react but Now no longer supports custom servers and instead wants developers to use serverless functions. This would lead me to believe that while you could use the Zeit framework, it'd be tricky/maybe impossible to use Now to host the app.

 

Am I missing something? Is there a way to host a Shopify app with Now and use their serverless functions?

 

Thanks!

Mike

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 139 163

Hey @msukmanowsky,

 

Nice catch! I might be missing something - does the tutorial specifically mention deploying to Zeit?

0 Likes
Highlighted
Tourist
7 0 4

Hey @scottydont -  it does not mention deploying via Now, but considering Now is like peanut butter to Zeit's jelly, I assumed that'd be the natural way to go to production with a service like this.

 

It turns out the deployment options are a bit more complicated. I'm currently looking at using Google's Cloud Run to deploy the server but running into issues there.

 

I think it'd be great to add deployment/hosting options to the tutorial. 

2 Likes
Highlighted
Shopify Partner
21 0 1

@msukmanowsky - have you found a way to host on NOW? Or did you find another hosting site?

0 Likes
Highlighted
Tourist
7 0 4

Couldn't host via Now ended up going with Cloud Run/Firebase (but never shipped the app). I can lend a hand if you need some help with that. 

0 Likes