Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
Sorry if this is a straightforward question, but I was not able to find answer to it online. I have not worked with node.js previously, but am trying to set up a project to play around with. I usually use git to commit any changes to projects repository that is afterwards deployed to the server.
With node am I safe to have a public repo containing files like server.js, config folder, package.json file etc.. basically things that demonstrate how server works.
If I did miss something out please feel free to add info
Yes, the only thing you do not want to push to github are secrets associated with any APIs you may be associated with. Those should be added as environment variables where the server is hosted.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 months ago.
Improve this question
Sorry for the noob questions but I can't figure this particular case out. I want to try out https://github.com/albertobeta/AffectiveSlider. So decided to import the project into Eclipse.
Q1) In general how and where can I open and run thing GitHub project?
Q2) I tried importing the project in Eclipse but could not run anything or any file JS file to run.
I would suggest opening the project in VS Code using the live server extension. You can open the repo in VS Code start the live server and open the project in /code_implementations/html5.
I don't know about Eclipse so I cant help you there.
Took two minutes and I have it running.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I generally install mongo on an ec2 instance .
But i came across many other methods on hosting a mongodb server in aws.
I am looking to learn the most effective way to do this. Thanks in advance.
This is just an educational question.
My recommendation is to use the mongoatlas service, they have several plans but they carry out a full deployment of your database with automatic backups, metrics, access and permission management, availability, set replicas, autoscaling, etc...
Finally they also use amazon to host their databases and it is an official service of mongodb.
https://www.mongodb.com/cloud/atlas
The downside to using a simple amazon instance is to implement all of that and without a good backup procedure you could lose all your data if your instance dies.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
i'm did starting learn Node.js. Formerly i used PHP and used Wampserver as local server. Now, when i starting learn Nodejs, some questions appear in my mind;
i'm starting use terminal windows first time and i don't know how i use this method on for example a linux based server i lease. Would you instruct me about this?
should i install wampserver for database in my computer? or have another Nodejs solution? Which is more advantageous?
Thanks for your answers.
If you are learning Node it would probably be better to install something more geared to that like a free mysql database. Another good way to do it is sign up for a free Amazon AWS account, you can really get a good grasp on Node by working with Lamda and EC2.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have an NodeJS application that runs on localhost and I want to share it with another person.
But I don't want to reveal my code. So how do I give it as an application rather than the code itself.
I need to make my application a binary file.One click run app.
There are modules out there which help in converting node application to binary(exe) .
Some are
EncloseJS, pkg
You can do that by using Ngrok after install it and run it; you can give access to your application URL and PORT for example http://localhost:3000 and then ngrok will give you a URL to access it from outside.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have followed many tutorials on how to host via GitHub Pages and well I can't get it to work. Git confuses me alot because I push my html to my gh-pages branch and after an hour my site still didn't work.
How can I fully set up a site using GitHub Pages?
You would have to follow the file structure for it to work. For the main user/organization site, use the master branch. For project sites, use gh-pages. You'd also have to put your index.html in the root folder. You can get more info at https://pages.github.com/
The problem you're not seeing your page is that you're missing index.html in the root folder. Move index.html of the web_files folder and fix the paths referenced in your page.