Adham Haisami
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Gym ## Descreption The application is a community and store for the gym. Via the system user can view available classes in the gym, join classes, and use the store to order items from the gym. ## React-App ### Pages #### Admin - home - user - products - classes - orders - announcement - subscription #### Client - Home page - Store - Sign up - Sign in - Anouncments - Profile - profile setting - Class page - single prouct page ### components #### Admin - sidebar - adminnav - search input - table - form - edit remove dev - card product order - statistic #### Client - Header - Footer - Trainers list - Trainer card - Products list - Product card - Categories list - Category card - Signup form - input - primary button - secondary button - alert - Sign in form - classes table in proifle page - class card in classes table - products list in profile page - product card in profile page - profile info - user info setting - trainer info - classes list - class card - class shcedule - single product page compoent - review compoent ## User story ### admin <!-- 1. Admin can view subscriptions 2. Admin can view orders 3. Admin Approve or reject subscriptions 4. Admin can Approve or reject or mark as complete on products 5. Admin can CRUD product listing 6. Admin can CRUD Subscriptions / classes 7. Admin can promote / demote users to trainers 8. Admin can view Analytics ( ex: profit, revenue, users activity ) --> 1. The admin has a dashboard where he can manage the website 2. in the dashboard, there is a side bar where he can navigete to the following section: Home, Classes, Users, Orderes, products, subscriptions, create products, crate trainers, and crate calss 3. in the home page, the admin can view the website analytics and statistics 4. in the users page, the admin can view, remove, and pend users 5. in the products page, the user can add products 6. ### user 1. User can sign up using his email, he has to enter his info such as wight, age, gender, .. etc. He has to fill all fields corrctly 2. uer can sign in with his email and password 3. after signing in, he will be redirected to the home page 4. in the navbar, the user can niviage to the store, classes, chat, announcements, or out tames page. Also, when he click on his picture, a drop down list will appear from which he can log out or to go to his profile 5. also, he can find information about the trainers in the home page 6. When the user navigate to the clasess page, he can move between caless from a side bar, in the page, he will see information about the instructor, the scedule, and the class discription. He can also join the class. 7. When the user navigate to the announcements page, he can see the announcments that the admon wrote and like/comment them. also, he can view the comments made by other users 8. when the user click on store, he will be derected to the store page. in this page, he will see the products 9. the user can filter the products by category, also he can click on them to see more details 10. after he click on the item, he will be redirected to the single product page, in this page, he can see more details, order the product, and review it. 11. when the user go to his profile from the drop down menur in the navbar, he will go to the prfile page 12. in the profile page, he will see his picture, email, and name. hi can cick on clasess button to see the calsses he is enrolled in, also he can click on products to see the products he orderred 13. the user can click on profile info to go to anotehr page will all his information 14. in the profile info page, he can edit or delte his info 16. Users can subscribe to classes 17. Users can order products 18. Users can cancel orders 19. Users can withdraw from classes ### Trainer 1. limited access to dashboard ( ex: Trainer can view data but can't update or delete ) API endpoints DB analysis => Schema { properties, ref } API endpoints : 0. main router ``` - router.use('/products',productRouter) - router.use('/categories',categoryRouter) - router.use('/orders', orderRouter) - router.use('/announcements', announcementRouter) - router.use('/subscriptions', subscriptionRouter) - router.use('/comments', commentRouter) - router.use('/rates', rateRouter) - router.use('/classes', classeRouter) -router.use('/users',userRouter) ``` 1. users => Heleena ``` - userRouter.post('/',createUser) - userRouter.get('/',getUsers) - userRouter.get('/:id',getUserById) - userRouter.get('/role/:role',getUserByRole) - userRouter.put('/:id',updateUser) - userRouter.delete('/:id',deleteUser) ``` 2. Products => Abeer ``` - productRouter.post('/',createProduct) - productRouter.get('/',getProduct) - productRouter.get('/:id',getProductById) - prouctRouter.put('/:id',updateProduct) - productRouter.delete('/:id',deleteProduct) - productRouter.get('/?category=category',getProductByCategory) ``` 3. categories =>Abeer ```js - categoryRouter.post('/',createCategory) - categoryRouter.get('/', getCategory) - categoryRouter.put('/:id',updateCategory) - categoryRouter.delete('/:id',deleteCategory) ``` 4. classes => Ahmed ```js - classeRouter.post('/',newClass) - classeRouter.get('/',classList) - classeRouter.get('/:id',oneClass) - classeRouter.put('/:id',classEdit) - classeRouter.delete('/:id', classDeletion) ``` 5. orders => ``` - orderRouter.post('/:productid/:id', createOrder)//userId from auth - orderRouter.get('/', getOrders) - orderRouter.get('/:userId', getOrder) - orderRouter.put('/:id', updateOrder) //userId from auth - orderRouter.delete('/:id', removeOrder) ``` 6. announcements => Abeer ``` - announcementRouter.post('/:roleId', createAnnouncement) - announcementRouter.get('/',getAnnouncements); - announcementRouter.put('/:id',updateAnnouncement) - announcementRouter.delete('/:id',deleteAnnouncement) - announcementRouter.get('/:id',getAnnouncementById); ``` 7. rates => ``` - router.post('/:productid', createRate) - router.get('/', getRates) - router.get('/:productid', getRate) - router.put('/:id/:productid', updateRate) - router.delete('/:id', removeRate) ``` 8. subscriptions => ``` - router.post('/:classId', createSubscription) - router.get('/', getSubscriptions) - router.get('/:classId', getSubscription) - router.put('/:classId', updateSubscription) - router.delete('/:classId', removeSubscription) ``` 9. comments => - router.post('/:announcementid', createComment) - router.get('/', getComments) - router.get('/:id', getComment) - router.put('/:id', updateComment) - router.delete('/:id', removeComment) Notes to be fixed:- - Description should be added to the product schema. - Custom error interface

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully