ayan-biswas0412 / gssoc2021-HotelOnTouch

👨‍🔧👨‍🔧Manage your all hotel services at one place - This is the project repository for HotelOnTouch Project and this project is actively looking for new contributors👨‍🔧👩‍🏫
https://hotelontouch.netlify.app
GNU General Public License v3.0
70 stars 82 forks source link

backend deployment suggestions #125

Closed ayan-biswas0412 closed 3 years ago

ayan-biswas0412 commented 3 years ago

Is your feature request related to a problem? Please describe. how to deploy properly the backend some ideas needed

ayan-biswas0412 commented 3 years ago

@singhayushh can you put your thoughts

singhayushh commented 3 years ago

If this application is just a working prototype of the idea rather than a full fledged application, I'd recommend heroku as it is better suited for backend hosting.

ayan-biswas0412 commented 3 years ago

If this application is just a working prototype of the idea rather than a full fledged application, I'd recommend heroku as it is better suited for backend hosting.

yah I also feel same can you provide me detailed steps to deploy to Heroku ?

singhayushh commented 3 years ago

There are two ways by which you can deploy the app on heroku. One is using just the online interface which is really very simple and easy to use. You just need to sign up on the heroku platform, create a new app followed by linking the repository and simply opting for automatic deployment or manual deployment.

The other is using git cli, if you like to work with the keyboard more than the mouse. Here's the official documentation with all necessary steps - View Docs

Note: To deploy on heroku, the repository needs to have a Procfile to hold the entry point to the web server (for this case, it'll be web: npm start)

aniketsingh98571 commented 3 years ago

@singhayushh @ayan-biswas0412 I think we are using nodejs in this project, so will it be required to add serverless functions to it...because I have one of my projects made using nodejs but as soon as I deployed it on netlify it gave an error regarding you need serverless functions for it........

singhayushh commented 3 years ago

I have deployed general nodejs applications on heroku before without the errors you mentioned of. But if we are able to add serverless functions, it'll be really great as there are a lot of advantages of serverless apps.

aniketsingh98571 commented 3 years ago

I have deployed general nodejs applications on heroku before without the errors you mentioned of. But if we are able to add serverless functions, it'll be really great as there are a lot of advantages of serverless apps.

Can you guide me how to deploy this on netlify or heroku

singhayushh commented 3 years ago

Can you guide me how to deploy this on netlify or heroku

You need to have your app.js in the root directory. Workaround for sub directories -> View Solution

ayan-biswas0412 commented 3 years ago

@singhayushh can you guide me like our backend folder is only needed to be deployed in the Heroku (not the entire repo so how to do that)

ayan-biswas0412 commented 3 years ago

also @singhayushh please open issues regarding backend

singhayushh commented 3 years ago

Okay. I'll need a week's time though. Have exams going on. Please excuse me for a week 😅

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.