A modern React photo-sharing application built with Vite, Axios Mock Adapter and Material-UI.
-
Install dependencies:
npm install
-
Start development:
npm run dev
The app will open at http://localhost:3000
The project has two phases:
The app works immediately with mock data. No server needed!
What happens:
photoShare.jsximports./lib/mockSetup.js- Mock setup intercepts all API calls
- Returns mock data from
modelData/photoApp.js - App works without any backend
The server provides these endpoints:
GET /test/info- Schema informationGET /user/list- All usersGET /user/:id- Specific user detailsGET /photosOfUser/:id- User's photos with comments
npm run dev # Start frontend development
npm run build # Build for production
npm run lint # Check code quality - React 18 - Modern React with hooks
- Vite - Fast build tool and dev server
- Material-UI - React component library
- React Router - Client-side routing
- Axios - HTTP client with mock adapter