Giter Site home page Giter Site logo

imlinhanchao / librejo Goto Github PK

View Code? Open in Web Editor NEW
17.0 2.0 5.0 18.66 MB

📚 图书管理网站,用于个人图书管理,支持多用户。

Home Page: https://librejo.cn/

License: GNU General Public License v3.0

JavaScript 51.49% HTML 0.34% Vue 45.17% Less 2.60% EJS 0.40%
book nodejs vue bookshelf

librejo's Introduction

个人图书馆管理网站

功能

  • 管理图书
  • 个人主页
  • 借阅管理
  • 阅读进度管理
  • 笔记管理
  • 导入豆瓣已读
  • 导入豆瓣笔记
  • 绑定豆瓣(豆瓣已关闭开放平台)
  • 移动端适配
  • 部署脚本
  • ifttt支援

目录说明

  1. bin - 服务启动入口
  2. interface - 业务接口实现
  3. frontend - 前端代码
    1. assets - 前端资源
    2. components - 前端组件
    3. config - 运行与编译变量配置
    4. libs - 前端工具
    5. store - vue store
    6. template - 界面模板
    7. theme - 全局演示
    8. views - 界面 vue 文件
  4. lib - 公共类库
  5. pubilc - 静态资源
  6. routes - 服务路由
  7. view - 视图
  8. script - 脚本

配置说明

  1. 新建数据库db(根据需要,第二步配置时填入);
  2. 执行npm run init,并根据提示填写信息(仅第一次);
  3. 若需要重新配置数据库,则运行npm run initdb
  4. 若需要重置某个表,如:重置account表,则执行npm run initdb -- account

调试说明

  1. 执行npm install;
  2. 前端执行npm run dev,后端使用 Visual Studio Code 运行调试(直接按下F5即可)。

部署说明

服务器需安装nodejsnpm。部署执行如下脚本:

npm install

编译前端代码:

npm run build

启动服务:

npm start

以守护进程方式,启动服务:

forever start ./bin/www

or

pm2 start ./bin/www

端口号

  • 6789 (可在config.jsonnpm run init配置)

librejo's People

Contributors

imlinhanchao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

librejo's Issues

前端调试 执行npm run dev 报错

已经完成了配置,也npm install了,现在执行npm run dev出现以下的报错。
想问下作者 之前遇到过类似的问题么?

> webpack-dev-server --disableHostCheck=true --content-base ./views/ --open --inline --hot --compress --history-api-fallback --config ./build/webpack.dev.config.js

× 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not 
match the API schema.
 - configuration has an unknown property 'mode'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }
   For typos: please correct them.
   For loader options: webpack 2 no longer allows custom properties in configuration.
     Loaders should be updated to allow passing options via loader options in module.rules.
     Until loaders are updated one can use the LoaderOptionsPlugin to pass these options to the loader:        
     plugins: [
       new webpack.LoaderOptionsPlugin({
         // test: /\.xxx$/, // may apply this only for some modules
         options: {
           mode: ...
         }
       })
     ]
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: `webpack-dev-server --disableHostCheck=true --content-base ./views/ --open --inline --hot --compress --history-api-fallback --config ./build/webpack.dev.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

关于Issues分类问题

本着对强迫症患者的关怀,建议设置相关Issues的问题分类(bug 建议 问题)
Screenshot_20191001-002416
Screenshot_20191001-002446

添加无封面图书书籍未显示问题

当添加有封面图书 点击books可正常显示书籍
当添加无封面图书 点击books未显示该书籍任何信息 若第一本为无封面书籍 则一直处于加载中

填写无ISBN书籍问题

添加书籍中 ISBN为必选项
若出现无ISBN书籍(如 高校自制书籍)该如何操作
mmexport1569861985503

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.