ArtiPub: an open source article multiple platforms

Article from my blog: https://blog.ljyngup.com/archives/705.html/

Feeling quite interesting to see, the time to find a free VPS build it.

Transfer from the official Github repository


ArtiPub (Article Publisher acronym, meaning "the article publisher") is an open source article multiple platforms can help write a good article author of the article will be automatically published to the Nuggets, SegmentFault, CSDN, know almost open source technologies such as China media platform, the spread of high-quality knowledge for maximum exposure. ArtiPub simple mounting, offers a variety of mounting, can be a key installation, the installation is generally only 5 minutes.

ArtiPub currently supports editing articles, article publishing, statistics functions, later we will add the stock of articles imported, functional data analysis, allowing you to better manage and optimize your technical articles. In addition, we will access more media channels, anywhere can truly make the article read.

Screenshot Preview

Platform Management

file

Article Manager

file

Post Editor

file

Articles published

file

Chrome plug-in

file

Installation Requirements

Docker installation

  • Docker: 18.03
  • Docker Compose: 1.24.1

NPM or source installation

  • MongoDB: 3.6+
  • NodeJS: 8.12+

Mounting

ArtiPub provides three installation follows.

  • Docker (about 5 minutes): suitable for a certain basis for Docker developer
  • npm (about 3 minutes): Suitable familiar with Node.js developers or npm
  • Source Developers want to know for core principles: (about 5-10 minutes)

By installing Docker

By Docker, MongoDB can be removed from the installation steps, but also our most recommended installation. Before using Docker installation ArtiPub, make sure you have installed and Docker Docker Compose.

在您的项目目录下创建docker-compose.yaml文件,输入如下内容。

version: '3.3'
services:
  app:
    image: "tikazyq/artipub:latest"
    environment:
      MONGO_HOST: "mongo"
      ARTIPUB_API_ADDRESS: "localhost:3000" # 后端API地址,如果安装地址不在本机,请修改为服务器IP地址+端口号(默认为3000)
    ports:
      - "8000:8000" # frontend
      - "3000:3000" # backend
    depends_on:
      - mongo
  mongo:
    image: mongo:latest
    restart: always
    ports:
      - "27017:27017"

然后在命令行中输入如下命令。

docker-compose up

然后在浏览器中输入http://localhost:8000可以看到界面。

注意⚠️,如果您的Docker宿主机不是本机,例如您用了Docker Machine或者Docker服务在其他机器上,您需要将环境变量ARTIPUB_API_ADDRESS改为宿主机IP+端口号(默认3000)。然后,在浏览器输入http://<宿主机IP>:8000即可看到界面。

通过npm包安装

如果您对npm熟悉,且已经有MongoDB的环境,这是最为快捷的方式。

安装npm包

npm install -g artipub

安装npm包时,为了加速下载速度,可以加入--registry参数来设置镜像源(后面源码安装时也可以这样操作)

npm install -g artipub --registry=https://registry.npm.taobao.org

运行ArtiPub

artipub start

该命令默认会使用localhost:27017/artipub为MongoDB数据库链接。输入如下命令可以看更多配置,例如配置数据库等。

artipub -h

成功运行后,在浏览器中输入http://localhost:8000可以看到界面。

通过源码安装

克隆Github Repo

git clone https://github.com/crawlab-team/artipub

安装npm包

cd artipub
npm install

启动前端

npm run start:frontend

启动后端

npm run start:backend

配置数据库

数据库的配置在./config.js中,可以按情况配置。

配置后端API地址

如果您部署的服务不在本机,需要在./src/config/config.ts中将apiEndpoint改成对应的IP地址+端口。

为什么创建ArtiPub

程序员和技术人员常常会写技术文章和博客,用作技术分享、产品分享或提供咨询等等。技术博主通常需要在多个媒体渠道发布文章,例如掘金、SegmentFault、CSDN、知乎、简书、微信公众号等等,以求最大的关注度。但是,发布文章到这么多平台费时费神,需要不断地复制粘贴;同时,作者想查看阅读数时还需要来回切换各个网站来进行统计。这非常不方便。ArtiPub主要就是为了来解决上述这些问题的。

The market already exists a file with multiple platform, for example OpenWrite, why should create ArtiPub it? Perhaps other article multiple platforms is also an alternative, but they require the user to their account information such as account passwords Cookie or uploaded to other servers, this is not safe, once the platform problem, your account information would be subjected to leak. Although I do not believe that the general platform malicious user's account, but if misuse occurs, your account will have been leaking privacy, property on the platform may also be damaged, there is a risk that needs to be considered. ArtiPub does not require users to upload account information, all the account information stored in all of the user's own database, so avoid this security risk.

In addition, because ArtiPub is open source, JS source code is relatively easy to understand, highly scalable, user access if there is demand for other platforms, can change the source code to achieve their needs, without waiting for the platform update. Development team will also continue to develop ArtiPub, it will create more practical and easy to use.

Supported Platforms

Guess you like

Origin www.cnblogs.com/ljysblog/p/12335367.html