Morita
    • 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 New
    • Engagement control
    • Make a copy
    • 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 Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy 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
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: 'Project documentation template' disqus: hackmd --- Top 110 albums of all time === ## Table of Contents [TOC] ## Introduction * Top 110 albums is a website that illustrates 100 highest rated music albums of all time, voted by music lovers using rateyourmusic.com around the world. * Users can see the list of 110 albums, ranked from the highest to lowest scores. When clicked or hovered, users can see detailed informations of each album, such as name, the artist created, release date, genre and so on. * Users can check the discography of the creator of the album, and albe to see other albums of the same artist featuring on the list. * Registered users can create their own playlist and be able to save their album in here. * Registered users can read,edit information of their own account. Registered users can delete their account from the system. * Registered users can purchase albums through Paypal or credit card. ## Appendix and FAQ :::info **Database source:** https://www.kaggle.com/datasets/michaelbryantds/top-5000-albums-of-all-time-rateyourmusiccom?select=rym_top_5000_all_time.csv **Checkout Library:** https://www.npmjs.com/package/@paypal/react-paypal-js ::: User stories --- ### Authentication 1. As a user, I can register a new account with an unique username, unique email and password. 2. As a user, I can sign in with my email and password. 3. As a user, my password will be encrypted and protected from being seen. 4. When logged in, user's account will be logged in persistently until user decides to logout 5. After logged in, user can access their own account page, and see their created playlists. ### Users 1. As a logged in user, I can see my personal information in my account page. I can delete my account. 2. As a logged in user, I can save an album I like in a playlist, or delete album I saved inside a playlist. 3. As a logged in user, I can create one or multiple personal playlists. 4. As a logged in user, I can add an album to a cart. 6. As a logged in user, I can purchase album I added in my cart with paypal or credit card. ### Lists 1. As a public user, on the homepage, I can see the ranking of 110 albums, sorts from highest to lowest rank scores. 2. As a public user, I can see the name, the artist name, the genre and the release date of each album. 3. As a public user, after clicking the album cover or the album name, I will be redirected to the album's detailed page. 4. As a public user, after clicking the the artist name on the album on the homepage, I will be redirected to the album's artist page. ### Albums 1. As a public user, on the album page, I can see the enlarged album cover, I can read the introduction of the album, I can see the album's genre and a carousel of albums with similar genres. 2. As a logged in user, on the album page, I can see the button to add the specific album into my created playlist. 3. As an admin, I can add, edit, delete album on the database. ### Artists 1. As a public user, on the artist page, I can see the enlarged portrait of the artist, I can read the biography of the artist, I can see the artist's music genre and a carousel of albums showing their discography. 2. As an admin, I can add, edit, delete artist on the database. ### Search 1. As a public user, on the search page, I can search for an album by typing on the search box. I can narrow my search field by clicking a dropdown that render a list of specific fields. API endpoints --- ### Authentication API ```gherkin= /** * @route POST /auth/login * @description login with email and pass * @body {username,email,password} * @access public */ ``` ### Users API ```gherkin= /** * @route GET api/user/ * @description get list of all users on the data * @access login required */ ``` ```gherkin= /** * @route GET api/user/myInfo * @description get your own account data * @access login required */ ``` ```gherkin= /** * @route GET api/user/myInfo * @description get your own account data * @access login required */ ``` ```gherkin= /** * @route POST api/user * @description create new user * @access login required * @req_body { "username": "phi", "email": "morita@gmail.com", "password": "123456" } */ ``` ```gherkin= /** * @route PUT api/user/:id * @description update user informations * @access login required * @req_body { "username": "phi", "email": "morita@gmail.com", "password": "123456" } */ ``` ```gherkin= /** * @route DELETE api/user/:id * @description delete user * @access login required * @req_body { "username": "phi", "email": "morita@gmail.com", "password": "123456" } */ ``` ### Playlist API ```gherkin= /** * @route GET api/playlist * @description get list of Playlists,find playlist has userRef = userId * @access loginRequired * @example http://localhost:8000/playlist/ */ ``` ```gherkin= /** * @route GET api/playlist/:id * @description get single playlist * @access loginRequired * @example http://localhost:8000/playlist/63b38e1743c84446d10e8f20 */ ``` ```gherkin= /** * @route POST api/Playlist * @description create new Playlist * @body { isDeleted: false playlistName: "my playlist", userRef: "akjdhaskjdhsajdh" }, * @access loginRequired */ ``` ```gherkin= /** * @route PUT api/addAlbumToPlaylist * @description add album to playlist * @access loginRequired * @example http://localhost:8000/playlist/addAlbumToPlaylist * @body { isDeleted: false playlistName: "my playlist", userRef: "akjdhaskjdhsajdh" }, */ ``` ```gherkin= /** * @route PUT api/Playlist * @description delete album from playlist * @access loginRequired * @example http://localhost:8000/playlist/deleteAlbumFromPlaylist */ ``` ```gherkin= /** * @route DELETE api/deletePlaylist * @description create new Playlist * @access loginRequired * @example http://localhost:8000/playlist/deletePlaylist/63b38e1743c84446d10e8f20 */ ``` ### Albums API ```gherkin= /** * @route GET api/album * @description get list of albums * @access public * @API http://localhost:8000/album?limit=2&page=2 */ ``` ```gherkin= /** * @route GET api/album * @description get list of albums * @access public * @API http://localhost:8000/album/findAlbumById/63a3df92aba421e4cd7301bb */ ``` ```gherkin= /** * @route POST api/album * @description create new album * @access loginRequired * @body { "ranking": 102 (higher than 101), "album": "Brief enquiry", "artistName": "the 1975", "releaseDate": "Jan 2023" "genre": "Rock", }, */ ``` ```gherkin= /** * @route PUT api/album * @description update infor of an album * @access loginRequired * @body { "ranking": 102 (higher than 101), "album": "Brief enquiry", "artistName": "the 1975", "releaseDate": "Jan 2023" "genre": "Rock", }, */ ``` ```gherkin= /** * @route DELETE api/album * @description delete an album * @access loginRequired * @body { "ranking": 102 (higher than 101), "album": "Brief enquiry", "artistName": "the 1975", "releaseDate": "Jan 2023" "genre": "Rock", }, */ ``` ```gherkin= /** * @route GET api/album/similarGenre * @description get albums with similar genres * @access public */ ``` ```gherkin= /** * @route GET api/album/getAlbumOfArtist/:id * @description get albums with similar artist * @access public */ ``` ### Artists API ```gherkin= /** * @route GET api/artist * @description get list of artists * @access public */ ``` ```gherkin= /** * @route GET api/artist * @description get list of artists * @access public */ ``` ```gherkin= /** * @route POST api/artist * @description create new artist * @access loginRequired * @body { artistName: "The 1975", genre: "Rock", biography: "good artist", }, */ ``` ```gherkin= /** * @route PUT api/artist * @description update info of Artist * @access loginRequired * @body { artistName: "The 1975", genre: "Rock", biography: "good artist", }, */ ``` ```gherkin= /** * @route DELETE api/artist * @description delete artist * @access loginRequired * @body { artistName: "The 1975", genre: "Rock", biography: "good artist", }, */ ``` Entity Relationship Diagram --- ![](https://i.imgur.com/dUV2qJk.png) ###### tags: `CoderSchool` `Final Project`

    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