├── .gitignore ├── backend ├── .gitignore ├── README.md ├── app.js ├── config.js ├── models │ ├── article.js │ ├── index.js │ └── user.js ├── package.json ├── routes │ ├── articles.js │ ├── index.js │ └── users.js ├── utils │ └── jwt.js └── wares │ └── methods.js └── frontend ├── .gitignore ├── README.md ├── package.json ├── public ├── favicon.ico ├── index.html └── manifest.json ├── src ├── api │ ├── article.js │ ├── index.js │ └── user.js ├── componets │ └── Header.js ├── containers │ ├── AddArticle.js │ ├── App.js │ ├── Home.js │ ├── Signin.js │ └── Signup.js ├── history.js ├── index.js ├── store │ ├── action-types.js │ ├── actions │ │ ├── article.js │ │ └── user.js │ ├── index.js │ ├── reducers │ │ ├── article.js │ │ ├── index.js │ │ └── user.js │ └── sagas │ │ ├── article.js │ │ ├── index.js │ │ ├── loaduser.js │ │ ├── login.js │ │ └── register.js └── utils │ └── jwt.js └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | lib 3 | .idea -------------------------------------------------------------------------------- /backend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/.gitignore -------------------------------------------------------------------------------- /backend/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /backend/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/app.js -------------------------------------------------------------------------------- /backend/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/config.js -------------------------------------------------------------------------------- /backend/models/article.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/models/article.js -------------------------------------------------------------------------------- /backend/models/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/models/index.js -------------------------------------------------------------------------------- /backend/models/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/models/user.js -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/routes/articles.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/routes/articles.js -------------------------------------------------------------------------------- /backend/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/routes/index.js -------------------------------------------------------------------------------- /backend/routes/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/routes/users.js -------------------------------------------------------------------------------- /backend/utils/jwt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/utils/jwt.js -------------------------------------------------------------------------------- /backend/wares/methods.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/backend/wares/methods.js -------------------------------------------------------------------------------- /frontend/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/.gitignore -------------------------------------------------------------------------------- /frontend/README.md: -------------------------------------------------------------------------------- 1 | ### 用户需要从数据库中添加 -------------------------------------------------------------------------------- /frontend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/package.json -------------------------------------------------------------------------------- /frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/public/favicon.ico -------------------------------------------------------------------------------- /frontend/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/public/index.html -------------------------------------------------------------------------------- /frontend/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/public/manifest.json -------------------------------------------------------------------------------- /frontend/src/api/article.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/api/article.js -------------------------------------------------------------------------------- /frontend/src/api/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/api/index.js -------------------------------------------------------------------------------- /frontend/src/api/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/api/user.js -------------------------------------------------------------------------------- /frontend/src/componets/Header.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/componets/Header.js -------------------------------------------------------------------------------- /frontend/src/containers/AddArticle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/containers/AddArticle.js -------------------------------------------------------------------------------- /frontend/src/containers/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/containers/App.js -------------------------------------------------------------------------------- /frontend/src/containers/Home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/containers/Home.js -------------------------------------------------------------------------------- /frontend/src/containers/Signin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/containers/Signin.js -------------------------------------------------------------------------------- /frontend/src/containers/Signup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/containers/Signup.js -------------------------------------------------------------------------------- /frontend/src/history.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/history.js -------------------------------------------------------------------------------- /frontend/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/index.js -------------------------------------------------------------------------------- /frontend/src/store/action-types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/action-types.js -------------------------------------------------------------------------------- /frontend/src/store/actions/article.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/actions/article.js -------------------------------------------------------------------------------- /frontend/src/store/actions/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/actions/user.js -------------------------------------------------------------------------------- /frontend/src/store/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/index.js -------------------------------------------------------------------------------- /frontend/src/store/reducers/article.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/reducers/article.js -------------------------------------------------------------------------------- /frontend/src/store/reducers/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/reducers/index.js -------------------------------------------------------------------------------- /frontend/src/store/reducers/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/reducers/user.js -------------------------------------------------------------------------------- /frontend/src/store/sagas/article.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/sagas/article.js -------------------------------------------------------------------------------- /frontend/src/store/sagas/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/sagas/index.js -------------------------------------------------------------------------------- /frontend/src/store/sagas/loaduser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/sagas/loaduser.js -------------------------------------------------------------------------------- /frontend/src/store/sagas/login.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/sagas/login.js -------------------------------------------------------------------------------- /frontend/src/store/sagas/register.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/store/sagas/register.js -------------------------------------------------------------------------------- /frontend/src/utils/jwt.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/src/utils/jwt.js -------------------------------------------------------------------------------- /frontend/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/yjdjiayou/jwt-demo/HEAD/frontend/yarn.lock --------------------------------------------------------------------------------