This project is the front-end landing page for Peer2Agent, built using React and Vite.
- Framework/Library: React
- Build Tool: Vite
- Styling: styled-components
- Routing: react-router-dom
- Icons: react-icons
- Notifications: react-toastify
- Linting: ESLint
The main application code is located in the src/ directory, following a standard React project structure:
src/assets/: Static assets like images and fonts.src/components/: Reusable UI components.src/contexts/: React context providers.src/pages/: Top-level page components.src/routes/: Application routing configuration.src/styles/: Global styles and theme configurations.src/App.jsx: The main application component.src/main.jsx: The entry point of the application.
In the project directory, you can run the following commands:
Installs the project dependencies.
Runs the app in development mode. Open http://localhost:5173 (or the port shown in your terminal) to view it in the browser. The page will reload if you make edits.
Builds the app for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
Lints the project files using ESLint.
Serves the production build locally to preview it.
-
Clone the repository:
git clone <repository-url> cd front-landing
-
Install dependencies:
npm install
(or
pnpm installif you are using pnpm, as indicated bypnpm-lock.yaml) -
Run the development server:
npm run dev
-
Open your browser and navigate to the local URL provided in the terminal (usually
http://localhost:5173).