Giter Club home page Giter Club logo

twitter-api-2020's Introduction

Simple-twitter

參考Twitter開發的小型專案,提供前端開發者API。(包含瀏覽貼文、創建推文、修改基本資料...,並提供互相追蹤的功能) (線上API連結)

目錄

功能介紹

  • 提供使用者登入、登出及註冊帳號功能
    • 網站具備JWT驗證功能
    • 使用者無法註冊管理員帳號
  • 提供瀏覽資訊
    • 全部推文、使用者追蹤人數、推文的留言及LIKE數量...
    • 提供使用者裡追蹤人數最高的TOP10
  • 提供使用者功能
    • 使用者可以修改個人資料(account、email、password...)
    • 新增、回覆、LIKE推文
    • 使用者互相追蹤功能
  • 提供後臺管理員功能
    • 可以瀏覽所有使用者資訊(tweet數量、like數量...)
    • 可以刪除特定貼文

使用方式

請先下載Postman設定檔,檔案提供所有路由及回傳的資料形式。

安裝流程

  • 後端部分(Express):
    • 利用終端機(Terminal),Clone專案至目標位置

      git clone https://github.com/rayray1010/twitter-api-2020
      
    • 進入專案資料夾後,安裝 npm packages

      npm install
      
    • 將環境變數載入

      將資料夾內'.env.example'檔案名稱改為'.env'
      
    • 請在MySQL Workbench,建立SQL資料庫

      create database ac_twitter_workspace
      
    • 載入model

      npx sequelize db:migrate
      
    • 載入種子資料

      npx sequelize db:seed:all
      
    • 開啟伺服器

      npm run dev
      

種子資料

account: root
email: [email protected]
password: 12345678
role: admin
account: user1
email: [email protected]
password: 12345678
role: user

相關資料

共同開發者


rayray1010🤔

TimZXJ🤔

JackJackHuo🤔

LuciusPook🤔

twitter-api-2020's People

Contributors

rayray1010 avatar sheonxj avatar v123582 avatar amberyen avatar ellenlee avatar carrot7712 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.