Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
c97459a
Create .gitignore
ChamilkaMihiraj2002 Jan 17, 2026
7a5b424
Create eslint.config.js
ChamilkaMihiraj2002 Jan 17, 2026
870b839
Create index.html
ChamilkaMihiraj2002 Jan 17, 2026
d183fd0
Create package-lock.json
ChamilkaMihiraj2002 Jan 17, 2026
46d0f3f
Create package.json
ChamilkaMihiraj2002 Jan 17, 2026
30a7232
Create vite.svg
ChamilkaMihiraj2002 Jan 17, 2026
07be51d
Create README.md
ChamilkaMihiraj2002 Jan 17, 2026
01afa86
Create App.css
ChamilkaMihiraj2002 Jan 17, 2026
b1fe062
Create App.tsx
ChamilkaMihiraj2002 Jan 17, 2026
6462577
Create react.svg
ChamilkaMihiraj2002 Jan 17, 2026
d1920da
Create index.css
ChamilkaMihiraj2002 Jan 17, 2026
cce2dea
Create main.tsx
ChamilkaMihiraj2002 Jan 17, 2026
133f405
Create tsconfig.app.json
ChamilkaMihiraj2002 Jan 17, 2026
f873974
Create tsconfig.json
ChamilkaMihiraj2002 Jan 17, 2026
74c4d43
Create tsconfig.node.json
ChamilkaMihiraj2002 Jan 17, 2026
d290059
Create vite.config.ts
ChamilkaMihiraj2002 Jan 17, 2026
c6128b5
Update package-lock.json
ChamilkaMihiraj2002 Jan 18, 2026
74bc5af
Update package.json
ChamilkaMihiraj2002 Jan 18, 2026
276e9f7
Update App.css
ChamilkaMihiraj2002 Jan 18, 2026
aa60222
Update App.tsx
ChamilkaMihiraj2002 Jan 18, 2026
42dd6ff
Create CarCard.tsx
ChamilkaMihiraj2002 Jan 18, 2026
f4ec931
Create Button.tsx
ChamilkaMihiraj2002 Jan 18, 2026
0f4a44b
Create Footer.tsx
ChamilkaMihiraj2002 Jan 18, 2026
00dee34
Create Navbar.tsx
ChamilkaMihiraj2002 Jan 18, 2026
9bdddf1
Create SearchBar.tsx
ChamilkaMihiraj2002 Jan 18, 2026
ed6f15b
Create Hero.tsx
ChamilkaMihiraj2002 Jan 18, 2026
b08f395
Create HowItWorks.tsx
ChamilkaMihiraj2002 Jan 18, 2026
7f7bbcd
Create NearbyVehicles.tsx
ChamilkaMihiraj2002 Jan 18, 2026
61ddbdd
Update index.css
ChamilkaMihiraj2002 Jan 18, 2026
909964e
Update vite.config.ts
ChamilkaMihiraj2002 Jan 18, 2026
70d06b0
Create index.ts
ChamilkaMihiraj2002 Jan 18, 2026
1f878ac
Create Services.tsx
ChamilkaMihiraj2002 Jan 18, 2026
3aff277
Create Home.tsx
ChamilkaMihiraj2002 Jan 18, 2026
4fe392c
Update App.tsx
ChamilkaMihiraj2002 Jan 21, 2026
96c68c0
Update Navbar.tsx
ChamilkaMihiraj2002 Jan 21, 2026
f705a36
Update index.css
ChamilkaMihiraj2002 Jan 21, 2026
c812238
Create About.tsx
ChamilkaMihiraj2002 Jan 21, 2026
7dffc16
Create Contact.tsx
ChamilkaMihiraj2002 Jan 21, 2026
d9c68ca
Create SignIn.tsx
ChamilkaMihiraj2002 Jan 21, 2026
8407d6a
Create SignUp.tsx
ChamilkaMihiraj2002 Jan 21, 2026
d028bff
update
ChamilkaMihiraj2002 Jan 21, 2026
751b11f
Update App.tsx
ChamilkaMihiraj2002 Jan 21, 2026
06d5ed5
Update Footer.tsx
ChamilkaMihiraj2002 Jan 21, 2026
1aaef62
Create SignUpDetails.tsx
ChamilkaMihiraj2002 Jan 21, 2026
af52637
Update SignUpRole.tsx
ChamilkaMihiraj2002 Jan 21, 2026
1f03a8c
Update package-lock.json
ChamilkaMihiraj2002 Jan 23, 2026
6111071
Update package.json
ChamilkaMihiraj2002 Jan 23, 2026
8ab15d3
Update App.tsx
ChamilkaMihiraj2002 Jan 23, 2026
ef921f5
Update CarCard.tsx
ChamilkaMihiraj2002 Jan 23, 2026
ab36086
Create mockData.ts
ChamilkaMihiraj2002 Jan 23, 2026
18cc8db
Create MapWidget.tsx
ChamilkaMihiraj2002 Jan 23, 2026
6cdfb14
Create StatCard.tsx
ChamilkaMihiraj2002 Jan 23, 2026
91785a0
Create EditProfileModal.tsx
ChamilkaMihiraj2002 Jan 23, 2026
71f049e
Create DashboardNavbar.tsx
ChamilkaMihiraj2002 Jan 23, 2026
9777661
Update Navbar.tsx
ChamilkaMihiraj2002 Jan 23, 2026
7fc53b5
Update Hero.tsx
ChamilkaMihiraj2002 Jan 23, 2026
ab8bdc2
Create BookingRequests.tsx
ChamilkaMihiraj2002 Jan 23, 2026
fc1f2a2
Create OwnerDashboard.tsx
ChamilkaMihiraj2002 Jan 23, 2026
53a378d
Create UserDashboardLayout.tsx
ChamilkaMihiraj2002 Jan 23, 2026
3095bed
Create MyVehicles.tsx
ChamilkaMihiraj2002 Jan 23, 2026
49b5c33
Create Earnings.tsx
ChamilkaMihiraj2002 Jan 23, 2026
bea6e2d
Create SearchVehicles.tsx
ChamilkaMihiraj2002 Jan 23, 2026
2f66cea
Update SignIn.tsx
ChamilkaMihiraj2002 Jan 23, 2026
5c85bf2
Create OwnerSettings.tsx
ChamilkaMihiraj2002 Jan 23, 2026
fa63723
Update SignUpDetails.tsx
ChamilkaMihiraj2002 Jan 23, 2026
56ca85e
Create UserBookings.tsx
ChamilkaMihiraj2002 Jan 23, 2026
f5abae3
Create SavedVehicles.tsx
ChamilkaMihiraj2002 Jan 23, 2026
7276ff5
Create UserSettings.tsx
ChamilkaMihiraj2002 Jan 23, 2026
7c06aa1
Create UserProfile.tsx
ChamilkaMihiraj2002 Jan 23, 2026
53bdf1e
Create DashboardLayout.tsx
ChamilkaMihiraj2002 Jan 23, 2026
31cb34b
Create VehicleBooking.tsx
ChamilkaMihiraj2002 Jan 23, 2026
26a72bc
Create OwnerProfile.tsx
ChamilkaMihiraj2002 Jan 23, 2026
1f48f64
Create mockVehicles.ts
ChamilkaMihiraj2002 Jan 23, 2026
b5fe40e
Create Modal.tsx
ChamilkaMihiraj2002 Jan 23, 2026
d1251b6
Create VehicleDetails.tsx
ChamilkaMihiraj2002 Jan 23, 2026
760b448
Update index.ts
ChamilkaMihiraj2002 Jan 23, 2026
3458f4c
frontend - new setup
ChamilkaMihiraj2002 Feb 15, 2026
28d9599
update
ChamilkaMihiraj2002 Feb 15, 2026
fb1a722
Api config
ChamilkaMihiraj2002 Feb 15, 2026
88b84dc
User profile
ChamilkaMihiraj2002 Feb 15, 2026
0eacbbc
Backend - User
ChamilkaMihiraj2002 Feb 15, 2026
7ee741d
Backend - auth
ChamilkaMihiraj2002 Feb 15, 2026
84998ce
Backend - Vehical
ChamilkaMihiraj2002 Feb 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Client/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
VITE_API_BASE_URL=http://localhost:8000

# Firebase Web App Config (for Google auth in frontend)
VITE_FIREBASE_API_KEY=
VITE_FIREBASE_AUTH_DOMAIN=
VITE_FIREBASE_PROJECT_ID=
VITE_FIREBASE_STORAGE_BUCKET=
VITE_FIREBASE_MESSAGING_SENDER_ID=
VITE_FIREBASE_APP_ID=
25 changes: 25 additions & 0 deletions Client/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
.env
73 changes: 73 additions & 0 deletions Client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:

```js
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...

// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,

// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
```

You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:

```js
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
```
23 changes: 23 additions & 0 deletions Client/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
},
])
13 changes: 13 additions & 0 deletions Client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>client</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading