Skip to content

full stack / MongoDB / typescript / node.js / React / Vite / TailwindCSS

Notifications You must be signed in to change notification settings

Joey-Chow/RealEstateBrowser

Repository files navigation

React + TypeScript + Vite

Structure of the Project

RealEstateBrowser/
├── package.json
├── vite.config.ts
├── tailwind.config.js
├── tsconfig.json
├── index.html
├── .env
├── .gitignore
│
├── src/
│   ├── client/                     # Frontend code
│   │   ├── main.tsx               # React entry point
│   │   ├── App.tsx                # Main App component
│   │   ├── index.css              # Global styles
│   │   │
│   │   ├── components/            # Reusable components
│   │   │   ├── ui/                # Basic UI components
│   │   │   │   ├── Button.tsx
│   │   │   │   ├── Modal.tsx
│   │   │   │   └── Input.tsx
│   │   │   ├── Header.tsx
│   │   │   ├── Footer.tsx
│   │   │   ├── PropertyCard.tsx
│   │   │   └── SearchFilter.tsx
│   │   │
│   │   ├── pages/                 # Page components
│   │   │   ├── Home.tsx
│   │   │   ├── Properties.tsx
│   │   │   ├── PropertyDetail.tsx
│   │   │   ├── Profile.tsx
│   │   │   └── NotFound.tsx
│   │   │
│   │   ├── hooks/                 # Custom React hooks
│   │   │   ├── useProperties.ts
│   │   │   └── useAuth.ts
│   │   │
│   │   ├── services/              # API calls
│   │   │   ├── api.ts
│   │   │   ├── propertyService.ts
│   │   │   └── authService.ts
│   │   │
│   │   ├── types/                 # TypeScript types
│   │   │   ├── property.ts
│   │   │   └── user.ts
│   │   │
│   │   └── utils/                 # Helper functions
│   │       ├── formatters.ts
│   │       └── validators.ts
│   │
│   └── server/                    # Backend code
│       ├── index.ts               # Server entry point
│       ├── app.ts                 # Express app setup
│       │
│       ├── routes/                # API routes
│       │   ├── properties.ts
│       │   ├── users.ts
│       │   └── auth.ts
│       │
│       ├── models/                # MongoDB models
│       │   ├── Property.ts
│       │   └── User.ts
│       │
│       ├── controllers/           # Route handlers
│       │   ├── propertyController.ts
│       │   └── userController.ts
│       │
│       ├── middleware/            # Express middleware
│       │   ├── auth.ts
│       │   └── validation.ts
│       │
│       ├── config/                # Configuration
│       │   └── database.ts
│       │
│       └── utils/                 # Server utilities
│           └── helpers.ts
│
├── public/                        # Static assets
│   ├── vite.svg
│   └── images/
│
└── dist/                          # Build output (auto-generated)

About

full stack / MongoDB / typescript / node.js / React / Vite / TailwindCSS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors