Giter VIP home page Giter VIP logo

my-blog's Introduction

個人部落格

因為苦於沒有可以記錄筆記的地方,所以建置本站

網站0成本開發(包辦UI UX設計),使用免費serverless部屬、firebase免費方案,內容主用於紀錄學習筆記,目前僅供自己查看

資料夾結構

├── src/
│    ├── db 
│    ├── features
│    ├── layout
│    ├── pages
│    ├── styles
│    └── shared/
│         ├── components
│         ├── constants
│         ├── hooks
│         ├── lib
│         ├── providers
│         ├── services
│         ├── store 
│         ├── types 
│         ├── utils 
│         └── HOC
  1. /db : 主存放db初始化設定
  2. /features : 主針對功能模組進行拆分
  3. /layout : 存放全局app版型
  4. /pages : 本地API、SSR、SSG頁面
  5. /styles : 全局樣式
  6. /shared/components : 全局組件
  7. /shared/constants : 全局可用常數
  8. /shared/hooks : 全局可用custom hook
  9. /shared/lib : 全局可用二次封裝套件
  10. /shared/providers : 全局provider
  11. /shared/services : 全局外部資源服務
  12. /shared/store : 全局狀態管理
  13. /shared/types : 全局類型
  14. /shared/utils : 全局工具
  15. /shared/HOC : 全局組件專用高階組件

渲染布局

/ : 更動程度不高使用 ISR

/post/[id] : id不可預測,且可能即時更動使用 SSR

/edit/[id] : id不可預測,但屬於後台系統無須SEO,採用 CSR

啟用指令

正式環境

docker-compose up -d --remove-orphans

開發環境

npm run dev

技術棧

  • NextJS 13 Page Router
  • react-query
  • MUI
  • cookies-next
  • dayjs
  • formik
  • react-markdown
  • react-markdown-editor-lite
  • react-syntax-highlighter
  • zustand
  • jsonwebtoken
  • firebase
  • typeorm
  • mongodb

功能開發紀錄

  • 留言功能
  • 分類排序功能
  • 草稿文章模式
  • 熱門文章section
  • 綁定正式域名、上搜索引擎

重要commit記錄

  • 2023/07/17 專案展開
  • 2024/03/15 mogodb + typeorm 轉為 firebase

功能介紹

使用 markdown 進行內容展示 image

透過github三方認證登入後,檢查是否有管理權限,擁有者則可以進行文章編輯、刪除 image

my-blog's People

Contributors

giiino avatar

Watchers

 avatar

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.