Is it possible deploy an Angular 2 application on Elastic beanstalk?
I'm trying to packaging an application but I have the following problems:
npm is not installed on the machine, I had to install it manually connecting via ssh, I'm wondering if there is an automated way to install it.
The version od node was wrong, I had to manually update too, also in this case I'm wondering if there is an automated way to update it.
When finally the application starts on the port 8081 using browser-sync, I get an error because this port seems already to be in use.
Related
I have already built a few VueJs applications for myself. Now I am working with a team. One backend and me frontend.
Now I'm wondering how do I include the environment in the repository. Until today I always had node on my local machine. With nvm I could also jump between versions on the local machine. But now I want future colleagues who will develop the app to have the same environment. So work with the same node and npm version. I thought this could be done with a dockerfile or docker-compose.yml. Then I can log into the container and run the npm run build for example.
Question But how does it work with npm run dev? Do I have access with the browser to the port that is assigned in the container of the Vue app?
I am very very new to React JS and have tried to install it on my VPS server that is running Cent OS.
Node.js seems to be working,
I have build a React project using the following code as a root level user on SSH:
npx create-react-app my-react-project
cd my-react-project
npm start
but when trying to view in browser I get a blank page (instead of react js default template)?
I see many people install this locally but I haven't found any examples on a hosted VPS, is this something I am doing wrong?
Any help would be much appreciated, thanks!
if you have ssh access to your VPS, the rest is pretty the same as your local environment.
You can copy/paste your project to your CentOS host and use the following commands in order to run it:
cd your_project_folder_which_includes_package_json_file
npm install
npm start
Also, if you are using this server as a production host, You should consider getting a production build of your React app on your local env by running npm run build and then publishing the build folder on your server and serving it using a static file server or using a reverse-proxy such as Nginx as a static server.
Actually this page in React documentation does a good job in explaining the details of deploying a React app, I encourage you to take a look at it.
I have two different shared hosting on GoDaddy server (cPanel and Plesk odin), I want to host my NodeJS project there.
You CAN do this.
Most tutorials have you downloading node + npm through the command line... and since you cannot use sudo in terminal on a shared GoDaddy server you have to install nvm to install npm and node.
But really, you only need a single file from the Node.js package to get a server running. It is much easier to download the package, and manually add the one file to cPanel.
Follow this tutorial for the most simple method of running a Node.js server on GoDaddy hosting.
You can't host Node project on cpanel. You will need a node server for that. Cpanel does not come with node installed, neither it could be Installed. You can check with aws or blueocean for that.
I would like to not have to install any node or npm versions on my host computer, only the IDE, WebStorm.
Can I still run, compile, debug node.js applications if I configure a remote node interpreter in WebStorm to one in Docker or Vagrant ?
Bonus: Would any of this affect ability to run TypeScript?
Remote interpreter can only be used for running/debugging Node.js applications with Node.js Run configuration. It can't be used for running internal services (linters, Typescript language service, etc.), can't be used to start tests (Mocha, Karma, etc.), can't be used for running NPM. So, the answer is "Yes" - you still need to have Node.js installed locally
Normally in local, I use cmd, command line to install any nodejs module using "npm install testing or connect or etc.."
But I decided to use appfog as server and I add nodejs to my project on appfg but probably I am gonna need some nodejs modules like testing, connect, request etc..
The problem is I couldnt found tool like cmd on appfog or any way to add nodejs modules.
How can I do this?
Basically, you just need to install the dependencies in your local environment and everything should be just fine. Simply specify all of your dependencies in your package.json file, run a typical npm install, and if the modules are properly installed in your local environment then they will be pushed to AppFog when you run af update.
You just have to develop your application on your local machine with all the required dependencies in the json package and modules in the Node.JS. And if your application is working properly at that time on your local machine then you can push all that application data to the AppFog using command line interface. Simply use the command af update <your app name> Then start the application and you will see that everything is working properly.