GithubHelp home page GithubHelp logo

godmmt / mern-app Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 15.35 MB

My first MERN app.

Home Page: https://mern-app-client-2y1n.onrender.com

HTML 0.35% JavaScript 71.31% SCSS 25.38% EJS 2.96%
express mongodb nodejs react mern-app

mern-app's Introduction

This is my first MERN app.

  • MongoDB - document database
  • Express - Node.js web framework
  • React - a client-side JavaScript framework
  • NodeJS - JavaScript web server

mern-app's People

Contributors

alanwei0502 avatar godmmt avatar

Stargazers

 avatar

Watchers

 avatar

mern-app's Issues

feat: modify footer styling with RWD

依照示意圖完成footer排版

  • 上半部
  • 下半部
  • RWD

[ 上半部 ]
示意圖: 左->中->右


logo
description
(small icons)twitter/instagram/facebook/youtube


Topics
(子項目)HTML/CSS...


聯絡方式(地址/電話/信箱)

[ 下半部 ]
copyright

feat: modify header styling with RWD

  1. 最左側加一個 logo
  2. header 裡面塞一個 navbar:其中包含 about us、course、postCourse
  3. login、register、logout 移到最右側,並加上一個 user avatar,點擊進入 profile
  4. 手機版時,將 navbar、login、register、logout、avatar合併成 hamburger menu

Feature: btn-req-loading

Originally posted by @Alanwei0502 in #40 (comment)

但是按鈕的部分建議可以做一個Loading,就是發出 request 之後,response 還沒回傳的期間都不可以點擊。
這個概念跟「防抖 debounce」、「節流 throttle」有點類似,避免client端瘋狂對server發請求。
你可以想一下這個要怎麼寫。不會沒關係,就發 issue 之後再來改~
備註:防抖節流也是面試常考題之一

Refactor: Component files structure

重構組件結構,並使用 .jsx 為副檔名,非組件檔案用 .js 即可,方便區分

  • components
    • course
      • index.jsx
    • enroll
      • index.jsx
    • home
    • login

Feature: Profile page UI

使用者登入後於導覽列出現"Profile"btn
點擊進入profile頁面
頁面內容是呈現使用者的個人資料

預計項目有:

  1. 姓名
  2. Email
  3. 角色Role
  4. 註冊日
  5. (未來補上功能)上傳個人大頭照

將 passport 自定義設置檔案(config)在主應用程式(index.js)初始化, 非 index.js 的檔案就不需要再各自引入, 而是直接使用 passport 物件即可。

將 passport 自定義設置檔案(config)在主應用程式(index.js)初始化, 非 index.js 的檔案就不需要再各自引入, 而是直接使用 passport 物件即可。

主線任務失敗 😥😣😭
不曉得要怎麼做比較好~
先列入待解決 issue,未來再試試看。

Originally posted by @godmmt in #99 (comment)

feat: home page content

  • feedback (WHAT OUR HAPPY STUDENT SAY)
  • FEATURED COURSE
  • cards (特別課程卡片)
  • TESTIMONIALS (Trusted by Thousand of Students and Tutors) (輪播學生感言)
  • 訂閱電子報

refactor: Initialize passport in the main application (index.js)

主線任務

將 passport 自定義設置檔案(config)在主應用程式(index.js)初始化,
非 index.js 的檔案就不需要再各自引入,
而是直接使用 passport 物件即可。

分支任務

  • 整理首頁的所有 Button 功能,刪除沒有用處的 Button
  • Header Logo點擊除了回到首頁後,也提供回到頁面頂端功能(就像Youtube)
  • 所有 pending 的吐司不可以被人為關閉,等成功失敗吐司回來才可以被人為關閉
  • 製作 top 懸浮按鈕,讓使用者可隨時回到頁面頂端

Feature: Post Course page UI

Post Course page只有在instrutor登入後才會於nav bar出現按鈕進入

Post Course頁面可以讓講師註冊自己要開課的課程內容
表單可以讓使用者填入:

  1. 課程標題
  2. 課程內容
  3. 課程價格
    (課程影片?)

最後是"提交按鈕"讓使用者送出表單

feat: 新增下架課程與刪除課程的功能

刪除功能:

  1. 是對DB進行軟刪除,不要真的把資料刪掉
  2. 刪除後的課程,學生老師都搜尋不到

下架功能:

  1. 必須新增一個欄位(e.g. isLaunched)開關,控制該課程是否上下架
  2. 學生找不到下架的課程
  3. 該課程老師找得到下架的課程,並且有權限可以控制

Feature: My Courses page UI

My Courses頁面的內容是"我的課程"

  • 使用者登入後才會於導覽列出現"My Courses"btn
  • 登入者身分:學生
    呈現所有學生購入的課程
  • 登入者身分:講師
    呈現所有講師創辦的課程
  • 功能 -> 詳見 #42 / #53
  • Styling

Feature: Register add validation for role

Add validation for the dropdown menu on the registration page.

value改為0 & 1,取代原先直接輸入的student & instructor -->先不做

似乎不需要做驗證(?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.