Apartment Rental is a React + Vite project for browsing and managing apartment listings. It includes a listing grid, apartment details page, update form, dashboard, and an about page.
- Browse apartment cards on the home page
- Open a detailed view for each apartment
- Add and edit apartment listings
- Delete listings from the collection
- View an about page with project information
- Responsive layout with styled cards and detail pages
- React
- React Router
- Vite
- CSS
Install dependencies:
npm installStart the development server:
npm run devBuild for production:
npm run buildPreview the production build:
npm run previewsrc/App.jsx- main app routes and statesrc/pages/ItemCard.jsx- listing page wrappersrc/components/ItemCardSummary.jsx- apartment summary cardsrc/pages/ItemDetailsPage.jsx- apartment details pagesrc/pages/UpdateApartmentPage.jsx- apartment edit pagesrc/pages/AboutPage.jsx- about pagesrc/index.css- global styling
The app uses local state and the sample apartment data in src/assets/list.json. Changes you make in the UI are stored in memory for the current session.