1 Star 0 Fork 14

o沧-桑o / orly

forked from 楠木 / orly 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 3.73 KB
一键复制 编辑 原始数据 按行查看 历史
楠木 提交于 2021-07-13 14:43 . add peacock

English | 中文

Build Status Lint Status Docker Image Go Report Card GoDoc

O'RLY Cover Generator

O'RLY Cover Generator is a parody book cover generator, implemented in Golang and Vue.js, supporting a wide range of language including CJK.

O'RLY is living at https://orly.nanmu.me/

Docker images can be found at https://hub.docker.com/r/nanmu42/orly

Docker Image

docker pull nanmu42/orly:[tag]

Refer to https://hub.docker.com/r/nanmu42/orly/tags for available tags.

Example config:

CoverImageDir = "cover-images"
Debug = false
MaxImageID = 41
Port = ":3000"
TitleFont = "fonts/SourceHanSerif-Bold.ttc"
NormalFont = "fonts/SourceHanSans-Medium.ttc"
ORLYFont = "fonts/SourceSansPro-Black.ttf"
QueueLen = 20
WorkerNum = 2
Width = 1000

Save as rly.toml, mount it into /app/config, and run docker image with param /app/rly -config config/rly.toml.

Develop O'RLY

O'RLY can be built in following commands:

mkdir -p assets
cd assets
wget -nc https://github.com/nanmu42/orly/releases/download/1.1.0-beta/cover-images.tar.xz
wget -nc https://github.com/nanmu42/orly/releases/download/1.1.0-beta/fonts.tar.xz
cd ..
make all

O'RLY consists of an API instance and a static frontend:

  • API source lies in cmd/rly;
  • Frontend source lies in frontend

Animal images and font files are in coverimage and font respectively.

More documentations can be found in their directory.

Contributes O'RLY

Contributions are always welcome!

Here are a few directions if you are interested:

  • Help translating the frontend(we are using Vue i18n)
  • Improve O'RLY
  • Add New Features
  • Raise a bug report

Or simply...

  • Sharing the fun :wink:

Contributors

Many thanks :hugs: to following contributors:

Projects in Brotherhood

There are several projects which share the idea:

Paperwork

"O'RLY Cover Generator" is just a parody, and it has no concern with O'Reilly Media.

This work uses Source Han Serif and Source Han Sans from Adobe and Google, with participation from partner foundries Changzhou SinoType in China, Iwata Corporation in Japan, and Sandoll Communications in Korea.

This work uses TrueType version of Source Sans Pro from Adobe by Paul D. Hunt.

The animal(well, not all of them are animal) images are from the USF ClipArt ETC project.

Acknowledgements

The author would like to thank JetBrains for providing a JetBrains Open Source license for his open source developments.

License

Use of this work is governed by a MIT License.

You may find a license copy in project root.

Go
1
https://gitee.com/flying_miku/orly.git
git@gitee.com:flying_miku/orly.git
flying_miku
orly
orly
master

搜索帮助