├── .eslintrc.json ├── public ├── favicon.ico ├── assets │ ├── gifs │ │ └── success.gif │ ├── images │ │ ├── admin.png │ │ ├── dr-lee.png │ │ ├── dr-cruz.png │ │ ├── dr-green.png │ │ ├── dr-peter.png │ │ ├── dr-cameron.png │ │ ├── dr-powell.png │ │ ├── dr-remirez.png │ │ ├── dr-sharma.png │ │ ├── pending-bg.png │ │ ├── cancelled-bg.png │ │ ├── dr-livingston.png │ │ ├── register-img.png │ │ ├── appointment-img.png │ │ ├── appointments-bg.png │ │ └── onboarding-img.png │ └── icons │ │ ├── check.svg │ │ ├── arrow.svg │ │ ├── user.svg │ │ ├── email.svg │ │ ├── upload.svg │ │ ├── appointments.svg │ │ ├── cancelled.svg │ │ ├── calendar.svg │ │ ├── pending.svg │ │ ├── close.svg │ │ ├── check-circle.svg │ │ ├── loader.svg │ │ ├── logo-icon.svg │ │ └── logo-full.svg ├── vercel.svg └── next.svg ├── next.config.mjs ├── .idea ├── .gitignore ├── vcs.xml ├── prettier.xml ├── inspectionProfiles │ └── Project_Default.xml ├── modules.xml └── medical_schedule_app.iml ├── postcss.config.mjs ├── components ├── theme-provider.tsx ├── ui │ ├── label.tsx │ ├── textarea.tsx │ ├── input.tsx │ ├── checkbox.tsx │ ├── radio-group.tsx │ ├── button.tsx │ ├── input-otp.tsx │ ├── dialog.tsx │ ├── form.tsx │ ├── alert-dialog.tsx │ └── select.tsx ├── SubmitButton.tsx ├── StatCard.tsx ├── FileUploader.tsx ├── forms │ ├── PatientForm.tsx~ │ ├── PatientForm.tsx │ ├── AppointmentForm.tsx │ └── RegisterForm.tsx ├── PasskeyModal.tsx └── CustomFormField.tsx ├── components.json ├── .gitignore ├── lib ├── appwrite.config.ts ├── utils.ts ├── actions │ ├── patient.actions.ts │ ├── appointment.actions.ts │ └── appointment.actions.ts~ └── validation.ts ├── tsconfig.json ├── app ├── layout.tsx ├── page.tsx ├── patients │ └── [userId] │ │ ├── new-appointment │ │ ├── page.tsx │ │ └── success │ │ │ └── page.tsx │ │ └── register │ │ ├── page.tsx │ │ └── page.tsx~ ├── admin │ └── page.tsx └── globals.css ├── types ├── appwrite.types.ts └── index.d.ts ├── package.json ├── tailwind.config.ts ├── constants └── index.ts └── README.md /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals" 3 | } 4 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /next.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('next').NextConfig} */ 2 | const nextConfig = {}; 3 | 4 | export default nextConfig; 5 | -------------------------------------------------------------------------------- /public/assets/gifs/success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/gifs/success.gif -------------------------------------------------------------------------------- /public/assets/images/admin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/admin.png -------------------------------------------------------------------------------- /public/assets/images/dr-lee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-lee.png -------------------------------------------------------------------------------- /public/assets/images/dr-cruz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-cruz.png -------------------------------------------------------------------------------- /public/assets/images/dr-green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-green.png -------------------------------------------------------------------------------- /public/assets/images/dr-peter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-peter.png -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | -------------------------------------------------------------------------------- /public/assets/images/dr-cameron.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-cameron.png -------------------------------------------------------------------------------- /public/assets/images/dr-powell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-powell.png -------------------------------------------------------------------------------- /public/assets/images/dr-remirez.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-remirez.png -------------------------------------------------------------------------------- /public/assets/images/dr-sharma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-sharma.png -------------------------------------------------------------------------------- /public/assets/images/pending-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/pending-bg.png -------------------------------------------------------------------------------- /public/assets/images/cancelled-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/cancelled-bg.png -------------------------------------------------------------------------------- /public/assets/images/dr-livingston.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/dr-livingston.png -------------------------------------------------------------------------------- /public/assets/images/register-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/register-img.png -------------------------------------------------------------------------------- /public/assets/images/appointment-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/appointment-img.png -------------------------------------------------------------------------------- /public/assets/images/appointments-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/appointments-bg.png -------------------------------------------------------------------------------- /public/assets/images/onboarding-img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rr3s1/jsm_medical_schedule_app/HEAD/public/assets/images/onboarding-img.png -------------------------------------------------------------------------------- /postcss.config.mjs: -------------------------------------------------------------------------------- 1 | /** @type {import('postcss-load-config').Config} */ 2 | const config = { 3 | plugins: { 4 | tailwindcss: {}, 5 | }, 6 | }; 7 | 8 | export default config; 9 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /public/assets/icons/check.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/prettier.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /public/assets/icons/arrow.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /components/theme-provider.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | 3 | import { ThemeProvider as NextThemesProvider } from "next-themes"; 4 | import { type ThemeProviderProps } from "next-themes/dist/types"; 5 | 6 | export function ThemeProvider({ children, ...props }: ThemeProviderProps) { 7 | return {children}; 8 | } 9 | -------------------------------------------------------------------------------- /public/assets/icons/user.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /components.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://ui.shadcn.com/schema.json", 3 | "style": "default", 4 | "rsc": true, 5 | "tsx": true, 6 | "tailwind": { 7 | "config": "tailwind.config.ts", 8 | "css": "app/globals.css", 9 | "baseColor": "slate", 10 | "cssVariables": true, 11 | "prefix": "" 12 | }, 13 | "aliases": { 14 | "components": "@/components", 15 | "utils": "@/lib/utils" 16 | } 17 | } -------------------------------------------------------------------------------- /.idea/medical_schedule_app.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | .yarn/install-state.gz 8 | 9 | # testing 10 | /coverage 11 | 12 | # next.js 13 | /.next/ 14 | /out/ 15 | 16 | # production 17 | /build 18 | 19 | # misc 20 | .DS_Store 21 | *.pem 22 | 23 | # debug 24 | npm-debug.log* 25 | yarn-debug.log* 26 | yarn-error.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # vercel 32 | .vercel 33 | 34 | # typescript 35 | *.tsbuildinfo 36 | next-env.d.ts 37 | -------------------------------------------------------------------------------- /public/assets/icons/email.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /public/vercel.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lib/appwrite.config.ts: -------------------------------------------------------------------------------- 1 | import * as sdk from 'node-appwrite'; 2 | 3 | export const { 4 | PROJECT_ID, API_KEY, DATABASE_ID, 5 | PATIENT_COLLECTION_ID, DOCTOR_COLLECTION_ID, 6 | APPOINTMENT_COLLECTION_ID, 7 | NEXT_PUBLIC_BUCKET_ID: BUCKET_ID, 8 | NEXT_PUBLIC_ENDPOINT: ENDPOINT 9 | } = process.env; 10 | 11 | const client = new sdk.Client(); 12 | 13 | client.setEndpoint(ENDPOINT!).setProject(PROJECT_ID!).setKey(API_KEY!); 14 | 15 | export const databases = new sdk.Databases(client); 16 | export const users = new sdk.Users(client); 17 | export const messaging = new sdk.Messaging(client); 18 | export const storage = new sdk.Storage(client); 19 | -------------------------------------------------------------------------------- /public/assets/icons/upload.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "lib": ["dom", "dom.iterable", "esnext"], 4 | "allowJs": true, 5 | "skipLibCheck": true, 6 | "strict": true, 7 | "noEmit": true, 8 | "esModuleInterop": true, 9 | "module": "esnext", 10 | "moduleResolution": "bundler", 11 | "resolveJsonModule": true, 12 | "isolatedModules": true, 13 | "jsx": "preserve", 14 | "incremental": true, 15 | "plugins": [ 16 | { 17 | "name": "next" 18 | } 19 | ], 20 | "paths": { 21 | "@/*": ["./*"] 22 | } 23 | }, 24 | "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], 25 | "exclude": ["node_modules"] 26 | } 27 | -------------------------------------------------------------------------------- /public/assets/icons/appointments.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /public/assets/icons/cancelled.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /public/assets/icons/calendar.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /components/ui/label.tsx: -------------------------------------------------------------------------------- 1 | "use client"; 2 | 3 | import * as React from "react" 4 | import * as LabelPrimitive from "@radix-ui/react-label" 5 | import { cva, type VariantProps } from "class-variance-authority" 6 | 7 | import { cn } from "@/lib/utils" 8 | 9 | const labelVariants = cva( 10 | "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" 11 | ) 12 | 13 | const Label = React.forwardRef< 14 | React.ElementRef, 15 | React.ComponentPropsWithoutRef & 16 | VariantProps 17 | >(({ className, ...props }, ref) => ( 18 | 23 | )) 24 | Label.displayName = LabelPrimitive.Root.displayName 25 | 26 | export { Label } 27 | -------------------------------------------------------------------------------- /components/ui/textarea.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | 3 | import { cn } from "@/lib/utils" 4 | 5 | export interface TextareaProps 6 | extends React.TextareaHTMLAttributes {} 7 | 8 | const Textarea = React.forwardRef( 9 | ({ className, ...props }, ref) => { 10 | return ( 11 |