Code Monkey home page Code Monkey logo

book-by-ai's Introduction

Book By AI ( AKA B.B.A )

Generate high-quality books with AI

用AI生成高质量电子书

8.12.1.zip2.mp4

自动生成书籍DEMO

  1. 人工输入文字:十个以内
  2. 生成时间:累计2小时
  3. 花费成本:3元左右(30张图片的生成费用)
  4. 在线阅读:https://demo01.level06.com/

视频教程

Youtube | B站

前置要求

  1. git
  2. nodejs
  3. terminal

如何使用

  1. 开通API2d 或者 自建 AiAPI 接口
  2. git clone https://github.com/easychen/book-by-ai.git BBA
  3. cd BBA
  4. npm install
  5. cp .env.example .env
  6. 根据注释配置 .env
  7. node bba.js book // 从头开始运行全部流程
  8. 按提示输入内容即可。如果中途遇到中断,可以重新运行命令。
  9. 安装 mdbook
  10. cd output/<book name>/ && mdbook serve // 本地预览
  11. cd output/<book name>/ && mdbook build // 生成 html

命令说明

  1. node bba.js book@help // 显示帮助
  2. node bba.js book@title // 生成标题
  3. node bba.js book@index // 生成目录(章)
  4. node bba.js book@sections // 生成目录(节)
  5. node bba.js book@write // 编写小节内容
  6. node bba.js book@make // 生成 mdbook 项目
  7. node bba.js book@addImage // 封面和章节配图生成

book-by-ai's People

Contributors

easychen 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.