-
Clone the Repository:
git clone https://github.com/abdul-wahab619/React-Projects.git cd React-Projects
-
Install Dependencies:
npm install
-
Environment Variables:
Create a
.env
file in the root of the project and set any necessary environment variables. For example:REACT_APP_API_URL=https://api.example.com
Make sure to restart the development server after changing environment variables.
-
Development Mode:
Run the app in development mode with hot-reloading:
npm start
or
npm run dev
Open http://localhost:3000 in your web browser.
-
Production Build:
To create a production build, use the following command:
npm run build
This will generate a
build
folder with optimized and minified files. You can deploy this folder to a web server.
-
Run Tests:
Execute the test suite to ensure everything is working as expected:
npm test
This command launches the test runner in interactive mode.
-
Linting:
Run ESLint for linting your code:
npm run lint
-
Formatting:
Use Prettier to format your code:
npm run format
If you'd like to contribute to this project, please follow the contribution guidelines.
This project is licensed under the MIT License.