A simple React app to display a list of phones and their details, paired with an Express server as the backend.
-
React Frontend:
- Displays a list of phones.
- Shows detailed view when a phone is selected.
- Eye-appealing design with responsive images.
-
Express Backend:
- REST API to serve phone data.
- Uses CORS middleware to support cross-origin requests.
-
Backend:
- Navigate to the
backend
directory. - Run
npm install
to install dependencies. - Run
node server.js
to start the server.
- Navigate to the
-
Frontend:
- Navigate to the
frontend
directory. - Run
npm install
to install dependencies. - Run
npm run dev
to start the React app.
- Navigate to the
Visit http://localhost:5173
in your browser to view the app.
- React
- Express
- Axios
- Vite
- CSS