Dev Environment Setup
Dev Environment Setup
Setup on Windows:
You can choose between the LTS (Long Term Support) version or the
Current version. The LTS version is recommended for most users as
it's more stable.
Click on the Windows installer (.msi file) for your system architecture
(32-bit or 64-bit).
Open Command Prompt: Press Win + R, type cmd, and hit Enter.
Check Node.js version: Type node -v and press Enter. This command
will display the installed Node.js version.
Check npm version: Type npm -v and press Enter. This command will
display the installed npm version.
2. Introduction to ReactJS and create-react-app
interfaces.
Windows
Prerequisites
Node.js and npm installed: Ensure that Node.js and npm are
installed on your system. You can verify this by running the following
commands in Command Prompt:
Press Win + R, type cmd, and press Enter to open Command Prompt.
You can edit files inside the src folder, such as App.js, and save your
changes. The development server will automatically reload and show
your changes in the browser.
Visual Studio Code: A lightweight code editor with great support for
JavaScript and React.
Deployment Options:
○ Netlify: Drag and drop the build folder or connect a GitHub repo.
This method ensures you get the latest stable version of Node.js.
Install prerequisites:
Install Node.js:
(Optional) Install Specific Version Using Node Version
Manager (NVM):
● Install NVM:
Install npm:
● Change Directory:
Step 4: Run the Development Server
This should automatically open your default browser with the starter
React app loaded!
Open the Project in an Editor: Use an editor like Visual Studio Code,
Sublime Text or Vim. Open src/App.js to start modifying the code.
Install npm:
Deployment Options:
○ GitHub Pages: Deploy using gh-pages.
○ Netlify: Drag and drop the build folder or connect a GitHub repo.
Installation on Windows:
Installation on Linux:
Copy code
Install VS Codium:
For Fedora/RHEL/CentOS:
Copy code
Install VS Codium:
For Arch Linux:
If you don't have yay installed, you can install it or use another
AUR helper.