This section provides an overview of the frontend setup of the Rentify project.
- Next.js : A React framework for production.
- Tailwind CSS : A utility-first CSS framework.
- React TanStack Query : For fetching, caching, and updating server state.
- Axios : Promise-based HTTP client for the browser and node.js.
- Clone the repository :
shCopy codegit clone https://github.com/yourusername/rentify-frontend.git cd rentify-frontend
- Install dependencies :
shCopy codenpm install
- Create a
.env
file with the necessary environment variables:envCopy codeNEXT_PUBLIC_API_URL=http://localhost:8000/api
- Run the development server :
shCopy codenpm run dev
Open http://localhost:3000 with your browser to see the result.
plaintextCopy coderentify-frontend/ ├── public/ │ ├── favicon.ico │ └── ... ├── src/ │ ├── components/ │ │ ├── ListingCard.tsx │ │ └── ... │ ├── pages/ │ │ ├── _app.tsx │ │ ├── index.tsx │ │ ├── page.tsx/ │ │ │ ├── [id].js │ │ │ └── ... │ │ └── ... │ ├── styles/ │ │ ├── globals.css │ │ └── ... │ ├── hooks/ │ │ ├── useProperties.js │ │ └── ... │ ├── utils/ │ │ ├── api.ts │ │ └── ... │ └── ... ├── tailwind.config.js ├── next.config.js ├── package.json └── ...