Coder Social home page Coder Social logo

beryllium's Introduction

Beryllium

专注于自部署的在线epub阅读器

English Version

特性

  • 易于部署,只需要一个docker镜像就完成
  • 同时支持桌面端和移动端web页面
  • 暗黑模式
  • 支持书签和内容标记
  • 支持多用户

如何使用

如果你想要从源码构建,请参考如何开发

通常情况下,你只需要使用docker镜像,下面是docker compose配置示例,docker cli参数也可以参考下方的配置。

version: "3"
services:
  beryllium:
    image: lee88688/beryllium
    ports:
      - 3000:3000
    environment:
      # 这个环境变量是必须添加的,不要在密码两侧添加引号
      # 在首次创建的时候使用,在数据库中存在admin账户后不再使用
      - ADMIN_USER_PASSWORD=some-password
      # 默认的admin账户名称为 admin,
      # 如果你想要修改admin账户的名称可以参考下面的配置
      # - ADMIN_USER_NAME=some-other-name
    volumes:
      - /path/to/data:/app/data

/app/data/db.sqlite 是数据库的路径, /app/data/asar 用于存储电子书的路径。

注意

epub文件在上传后会被转换成asar文件格式,asar文件与tar文件类似存储的是epub文件解压之后的文件。如果你想要后续再使用上传的epub文件,那就不要删除epub文件。epub文件是无法再从服务器上在此下载的。

如何开发

  • create .env file, like .env.example
  • prisma
    • npx prisma db push, push schema to db
    • npx prisma db seed, seed db

This is a T3 Stack project bootstrapped with create-t3-app.

What's next? How do I make an app with this?

We try to keep this project as simple as possible, so you can start with just the scaffolding we set up for you, and add additional things later when they become necessary.

If you are not familiar with the different technologies used in this project, please refer to the respective docs. If you still are in the wind, please join our Discord and ask for help.

Learn More

To learn more about the T3 Stack, take a look at the following resources:

You can check out the create-t3-app GitHub repository — your feedback and contributions are welcome!

How do I deploy this?

Follow our deployment guides for Vercel, Netlify and Docker for more information.

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.