Recently, I successfully managed to run a simple example project by following these steps:
I downloaded and installed Node.js for windows x64.
I then used Git to clone the project from https://github.com/BretCameron/three-js-sample.git
Next, I ran the following commands:
- npm install react-scripts
- npm audit-fix
- npm start
By running these steps, it initiated a server at localhost:3000
where I could view and interact with the example project. Everything was working smoothly.
Now, my goal is to transfer this web application onto a local apache server, for which I have opted to use XAMPP. Eventually, I plan on hosting it on an online server as well.
In the past, I have worked with PHP applications like Wordpress, where all project files are placed in the htdocs folder. With that experience in mind, I wonder if I should gather all Node.js files and put them in the same directory?
I am having trouble locating where npm has installed react-scripts
. Can anyone provide guidance on how to transition the application from being served by the built-in local server using npm start
, to becoming a fully hosted application on an online server?