{"id":19598523,"url":"https://github.com/kaplanh/appointment_app","last_synced_at":"2026-04-16T02:31:03.572Z","repository":{"id":181421929,"uuid":"666747963","full_name":"kaplanh/Appointment_app","owner":"kaplanh","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-14T23:44:11.000Z","size":635,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-26T15:16:04.611Z","etag":null,"topics":["bootstrap5-grid","conditional-css-import","conditional-rendering","filter","map","props-drilling","react","react-bootsrap","react-bootstrap-form","react-event-handlers","react-icon","responsive-design","semantic-commits","toggle","usestate-hook"],"latest_commit_sha":null,"homepage":"https://appointment-app-v1.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaplanh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-07-15T12:51:21.000Z","updated_at":"2024-02-14T23:26:50.000Z","dependencies_parsed_at":"2023-07-15T15:18:33.478Z","dependency_job_id":null,"html_url":"https://github.com/kaplanh/Appointment_app","commit_stats":null,"previous_names":["kaplanh/appointment_app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaplanh/Appointment_app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanh%2FAppointment_app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanh%2FAppointment_app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanh%2FAppointment_app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanh%2FAppointment_app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaplanh","download_url":"https://codeload.github.com/kaplanh/Appointment_app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaplanh%2FAppointment_app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31868487,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap5-grid","conditional-css-import","conditional-rendering","filter","map","props-drilling","react","react-bootsrap","react-bootstrap-form","react-event-handlers","react-icon","responsive-design","semantic-commits","toggle","usestate-hook"],"created_at":"2024-11-11T09:06:34.460Z","updated_at":"2026-04-16T02:31:03.548Z","avatar_url":"https://github.com/kaplanh.png","language":"JavaScript","readme":"# Appointment App\n\n[:point_right: Click here to see on browser](https://appointment-app-v1.netlify.app/)\n\n![appointment](https://github.com/kaplanh/Appointment_app/assets/101884444/63923413-ba65-4e73-a9b5-0ab6a696bcab)\n\n---\n\n| **What's used in this app ?**                                                           | **How use third party libraries**          | **Author**                                                                       |\n| --------------------------------------------------------------------------------------- | ------------------------------------------ | -------------------------------------------------------------------------------- |\n| [lifting state up](https://react.dev/learn/sharing-state-between-components)            |                                            | [Take a look at my portfolio](https://kaplanh.github.io/Portfolio_with_CssFlex/) |\n| [useState() Hook](https://react.dev/learn#using-hooks)                                  |                                            | [Visit me on Linkedin](https://www.linkedin.com/in/kaplan-h/)                    |\n| [react-events](https://react.dev/learn#responding-to-events)                            |                                            |                    |\n| [React-Conditional rendering](https://react.dev/learn#conditional-rendering)            |                                            |                                                                                  |\n| [React-Bootstrap](https://react-bootstrap.netlify.app/)                                 | npm i / yarn add react-bootstrap bootstrap |                                                                                  |\n| [React-icons](https://react-icons.github.io/react-icons/)                               | npm i / yarn add react-icons               |                                                                                  |\n| [props-drilling](https://react.dev/learn#sharing-data-between-components)               |                                            |                                                                                  |\n| [Semantic-Commits](https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716) |                                            |                                                                                  |\n| Deploy with [Netlify](https://app.netlify.com/teams/kaplanh/sites)                                      |                                            |                                                                                  |\n\n---\n\n## How To Run This Project 🚀\n\n\u003cbr/\u003e\n\n### 💻 Install React 👇\n\n```bash\nyarn create react-app .  or npx create-react-app .\n```\n\n### 💻 Install Sass 👇\n\n```bash\nyarn add sass  or npm i sass\n```\n\n## 🔴 Delete these files and delete the imports👇\n\n    - App.test.js\n    - reportWebVitals.js\n    - setupTests.js\n    - favicon.ico\n    - logo192.png\n    - logo512.png\n    - manifest.json\n    - robots.txt\n\n### 💻 Start the project 👇\n\n```bash\nyarn start or npm start\n```\n\nOR\n\n-   \u003cstrong\u003eClone the Repo\u003c/strong\u003e\n\n    ```sh\n    git clone\n    ```\n\n-   \u003cstrong\u003eInstall NPM packages\u003c/strong\u003e\n\n    ```sh\n    npm install or yarn\n    ```\n\n-   \u003cstrong\u003eRun the project\u003c/strong\u003e\n\n    ```sh\n    npm start or yarn start\n    ```\n\n-   \u003cstrong\u003eOpen the project on your browser\u003c/strong\u003e\n\n    ```sh\n    http://localhost:3000/\n    ```\n\n-   ### \u003cstrong\u003eEnjoy! 🎉\u003c/strong\u003e\n\n---\n\n## Project Skeleton\n\n```\n Appointment App (folder)\n|\n|----public (folder)\n│     └── index.html\n|----src (folder)\n|    |--- components (folder)\n│    │       ├── AddModal.jsx\n│    │       ├── AppointmentList.jsx\n│    │       ├── Doctors.jsx\n│    │\n|    |--- helpers (folder)\n|    |       |── data.js\n│    │\n│    |--- pages (folder)\n|    |      ├── Home.jsx\n|    |\n│    ├--- App.js\n│    │--- App.css\n│    |--- index.js\n│\n│\n|-- .gitignore\n|── package-lock.json\n├── package.json\n|── README.md\n|── yarn.lock\n\n\n```\n\n---\n\n### At the end of the project, the following topics are to be covered;\n\n-   Lifting state up\n\n    ````jsx\n    // src/Home.jsx\n        import Doctors from \"../components/Doctors\";\n        import AppointmentsList from \"../components/AppointmentsList\";\n        import { appointmentData } from \"../helpers/data\";\n        import { useState } from \"react\";\n\n        const Home = () =\u003e {\n            const [appointments, setAppointments] = useState(appointmentData);\n            return (\n                \u003cmain className=\"text-center mt-2\"\u003e\n                    \u003ch1 className=\"text-danger display-6\"\u003eWELLCOME TO OUR HOSPITAL\u003c/h1\u003e\n                    \u003cDoctors apps={appointments} setApps={setAppointments} /\u003e\n                    \u003cAppointmentsList apps={appointments} setApps={setAppointments} /\u003e\n                \u003c/main\u003e\n            );\n        };\n\n        export default Home;\n\n\n    // src/Doctors.jsx\n    const Doctors = ({apps,setApps}) =\u003e {\n    const [show, setShow] = useState(false);\n    const [drName, setDrName] = useState(\"\");\n    // const handleImgClick = () =\u003e {\n    //   setShow(true)\n    // }\n    return (\n\n\n\n        // src/AppointmentList.jsx\n        const AppointmentList = ({ apps, setApps }) =\u003e {\n        console.log(apps);\n\n        const handleDelete = (id) =\u003e {\n            setApps(apps.filter((item) =\u003e item.id !== id));\n        };\n\n        const handleDoubleClick = (id) =\u003e {\n            setApps(\n                apps.map((item) =\u003e\n                    item.id === id ? { ...item, consulted: !item.consulted } : item\n                )\n            );\n        };\n        console.log(apps);\n        return (\n        ```\n\n\n\n        ```\n\n    ````\n\n-   conditional rendering + cconditional Css\n\n    ```jsx\n    i {apps.length \u003c 1 \u0026\u0026 (\n                \u003cimg\n                    src=\"./img/appointment.jpg\"\n                    width=\"70%\"\n                    alt=\"appointment\"\n                /\u003e\n            )}\n\n            {apps.map(({ id, patient, consulted, doctor, day }) =\u003e (\n                \u003cdiv\n                    key={id}\n                    className={\n                        consulted ? \"appointments consulted\" : \"appointments\"\n                    }\n                    onDoubleClick={() =\u003e handleDoubleClick(id)}\n                \u003e\n                    \u003cRow className=\"justify-content-between align-items-center\"\u003e\n                        \u003cCol xs={12} sm={12} md={6}\u003e\n                            \u003ch4\u003e{patient}\u003c/h4\u003e\n                            \u003ch5\u003e{doctor}\u003c/h5\u003e\n                        \u003c/Col\u003e\n                        \u003cCol\u003e\n                            \u003ch5\u003e{day}\u003c/h5\u003e\n                        \u003c/Col\u003e\n                        \u003cCol className=\"text-end\"\u003e\n                            \u003cTiDelete\n                                className=\"text-danger fs-1\"\n                                type=\"button\"\n                                onClick={() =\u003e handleDelete(id)}\n                            /\u003e\n                        \u003c/Col\u003e\n                    \u003c/Row\u003e\n                \u003c/div\u003e\n            ))}\n    ```\n\n-   tiklananin id sine göre objenin icindeki boolean degeri degiline cevirme toggle yapma\n\n    ```jsx\n        setApps(\n                apps.map((item) =\u003e\n                    item.id === id ? { ...item, consulted: !item.consulted } : item\n                )\n            );\n        };\n    ```\n\n-   tiklananin id sine göre filter ile silme\n\n    ```jsx\n        const handleDelete = (id) =\u003e {{\n            setApps(apps.filter((item) =\u003e item.id !== id));\n        };\n    ```\n\n-   Css ::after\n\n    ```css\n    .consulted::after {\n        content: \"CONSULTED\";\n        background-color: rgb(166, 18, 189);\n        color: white;\n        font-size: 2rem;\n        border-radius: 1rem;\n        position: absolute;\n        left: 50%;\n        top: 50%;\n        padding: 0.5rem;\n        transform: translate(-50%, -50%);\n    }\n    ```\n\n-   Semantic Commit Messages\n    See how a minor change to your commit message style can make you a better programmer.\n\n    Format: \u003ctype\u003e(\u003cscope\u003e): \u003csubject\u003e\n\n    \u003cscope\u003e is optional\n\n    -   Example\n\n    ```\n                feat: add hat wobble\n        ^--^  ^------------^\n        |     |\n        |     +-\u003e Summary in present tense.\n        |\n        +-------\u003e Type: chore, docs, feat, fix, refactor, style, or test.\n    ```\n\n- More Examples:\n       -   `feat`: (new feature for the user, not a new feature for build script)\n      -   `fix`: (bug fix for the user, not a fix to a build script)\n       -   `docs`: (changes to the documentation)\n       -   `style`: (formatting, missing semi colons, etc; no production code change)\n      -   `refactor`: (refactoring production code, eg. renaming a variable)\n      -   `test`: (adding missing tests, refactoring tests; no production code change)\n      -   `chore`: (updating grunt tasks etc; no production code change)\n\n---\n\n## Feedback and Collaboration\n\nI value your feedback and suggestions. If you have any comments, questions, or ideas for improvement regarding this project or any of my other projects, please don't hesitate to reach out.\nI'm always open to collaboration and welcome the opportunity to work on exciting projects together.\nThank you for visiting my project. I hope you have a wonderful experience exploring it, and I look forward to connecting with you soon!\n\n\u003cp align=\"center\"\u003e ⌛\u003cstrong\u003e Happy Coding \u003c/strong\u003e ✍ \u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaplanh%2Fappointment_app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaplanh%2Fappointment_app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaplanh%2Fappointment_app/lists"}