Open terminal, write the following command and press enter.
npm -v
terminal should return your npm version.
-
Clone App Make a new folder and open the terminal there. Write the following command and press enter.
https://github.com/khushbooag4/Amazon-Clone.git
-
Move to current directory Move inside the cloned folder with name amazon-clone.
cd amazone-clone
-
And then move to the directory.
cd client
-
Install node packages Write the following command and press enter to download all required node modules.
npm install
-
Run Locally While you are still inside the cloned folder, write the following command to run the website locally.
npm start
NOTE: The port by default will be http://localhost:3000/
-
And then move to the directory.
cd server
-
Install node packages Move inside the cloned folder with name codeflow. Write the following command and press enter to download all required node modules.
npm install
-
Run Locally While you are still inside the cloned folder, write the following command to run the website locally.
npm start