This guide will walk you through the steps to set up and run a the front end application, including installing dependencies, adding Font Awesome for icons, and starting the development server.
Before you begin, ensure you have the following installed on your machine:
- Node.js (v14 or later) and npm (Node Package Manager)
- A code editor (e.g., VS Code)
If you haven’t already cloned the project repository, do so with the following command:
git clone <repository-url>
cd <project-folder>
Run the following command to install all necessary dependencies:
npm install
This will install the packages listed in the package.json
file.
To add Font Awesome for icons, install the following packages:
npm install --save @fortawesome/fontawesome-svg-core @fortawesome/free-solid-svg-icons @fortawesome/react-fontawesome
- Free Regular Icons:
npm install --save @fortawesome/free-regular-svg-icons
- Free Brands Icons:
npm install --save @fortawesome/free-brands-svg-icons
To enable making HTTP requests, install Axios by running the following command:
npm install axios
Axios will allow you to make API calls and handle responses easily.
Run the following command to start the app in development mode:
npm run start
This will start the development server and provide a local URL (usually http://localhost:3000
) to preview the app in your browser.
- Make sure to check the
README
orpackage.json
of the project for any specific configurations or scripts that might differ. - If you encounter issues during setup, ensure that all dependencies are correctly installed and that your Node.js version meets the requirements.
Enjoy building and running your application!