This project aims to create an onboarding process for landlords to manage their apartments and rooms efficiently. It utilizes Next.js for frontend development, Supabase for backend services including database management and storage, and Tailwind CSS for styling.
The application integrates with Supabase to manage data. The database schema includes:
- id (UUID, Primary Key)
- name (String)
- location (String)
- price (Integer)
- description (Text)
- createdAt (Timestamp)
- id (UUID, Primary Key)
- apartmentId (UUID, Foreign Key references apartments.id)
- name (String)
- size (Integer, in square meters)
- equipment (Text)
- imageUrl (String)
- createdAt (Timestamp)
To run this project locally, follow these steps:
- Clone the Repository:
- Install Dependencies:
- Set Up Environment Variables:
- Create a
.env.local
file in the root directory. - Add your Supabase credentials:
NEXT_PUBLIC_SUPABASE_URL=<supabase-url> NEXT_PUBLIC_SUPABASE_ANON_KEY=<supabase-anon-key>
- Initialize and Seed the Database:
- Use the Supabase dashboard or API to set up the required tables (
apartments
androoms
).
- Run the Development Server:
- Access the Application:
- Open your browser and go to
http://localhost:3000/apartments
to view the list of apartments. - Navigate to
http://localhost:3000/apartment/[id]
to view details of a specific apartment.