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

See the feeling is very interesting, free to find a spare VPS set up.

Transferred from the official Github repository

ArtiPub (Article Publisher for short, meaning “Article Publisher “) is an open source multi-article platform, which can help Article authors automatically publish good articles to nuggets, SegmentFault, CSDN, Zhihu, open source China and other technical media platforms to spread quality knowledge. Get maximum exposure. ArtiPub installation is simple, provides a variety of installation methods, can be installed using a key, installation generally only 5 minutes.

ArtiPub currently supports the functions of article editing, article publishing and data statistics. Later we will add the functions of stock article import and data analysis, so that you can better manage and optimize your technical articles. In addition, we will also access more multimedia channels to really make articles accessible everywhere.

Preview screenshots

Platform management

The article management

The article editor

The article published

Chrome plug-ins

Installation requirements

Docker installation

  • Docker: 18.03
  • Docker Compose: 1.24.1

NPM or source code installation

  • Mongo: 3.6 +
  • NodeJS: 8.12 +

installation

ArtiPub offers 3 installation methods as follows.

  • Docker (about 5 minutes): Suitable for developers who have some basic knowledge of Docker
  • NPM (about 3 minutes): Suitable for developers familiar with Node.js or NPM
  • Source code (5-10 minutes): Suitable for developers who want to learn how the kernel works

Install via Docker

Docker eliminates the need to install MongoDB, which is our most recommended installation. Before installing ArtiPub with Docker, make sure you have Docker and Docker Compose installed.

Create the docker-comemess. yaml file in your project directory and enter the following.

Version: '3.3' services: app: image: "latest" environment: MONGO_HOST: "mongo" ARTIPUB_API_ADDRESS: "Localhost :3000" # server IP address + port number (default :3000) - "8000:8000" # frontend - "3000:3000" # backend depends_on: - mongo mongo: image: mongo:latest restart: always ports: - "27017-27017"Copy the code

Then enter the following command on the cli.

docker-compose upCopy the code

Then type http://localhost:8000 in your browser to see the interface.

Note ⚠️, if your Docker host is not local, such as you use Docker Machine or Docker service on other machines, you need to change the environment variable ARTIPUB_API_ADDRESS to host IP+ port number (default 3000). Then, enter http://< host IP>:8000 in the browser to see the page.

Install using the NPM package

If you are familiar with NPM and already have a MongoDB environment, this is the fastest way.

Install the NPM package

npm install -g artipubCopy the code

When installing the NPM package, add the –registry parameter to set the image source to speed up the download (you can also do this when installing the later source code).

npm install -g artipub --registry=https://registry.npm.taobao.orgCopy the code

Run ArtiPub

artipub startCopy the code

By default, this command links the MongoDB database using localhost:27017/artipub. Enter the following command to view more configurations, such as configuring the database.

artipub -hCopy the code

After the system runs successfully, enter http://localhost:8000 in the browser to view the page.

Install from source code

Cloning making Repo

git clone https://github.com/crawlab-team/artipubCopy the code

Install the NPM package

cd artipub
npm installCopy the code

Start the front-end

npm run start:frontendCopy the code

Start the back-end

npm run start:backendCopy the code

Configuring the Database

The database configuration is in./config.js and can be configured as required.

Configure the back-end API address

If the deployed service is not on the local host, change the apiEndpoint to the corresponding IP address and port in./ SRC /config/config.ts.

Why was ArtiPub created

Programmers and technical people often write technical articles and blogs for technical sharing, product sharing, consulting, and so on. Technical bloggers usually need to publish their articles on multiple media channels, such as Nuggets, SegmentFault, CSDN, Zhihu, Jianshu, wechat official account, etc., in order to get maximum attention. However, publishing articles on so many platforms takes time and effort, requiring constant copy-pasting; At the same time, when the author wants to check the number of readers, he also needs to switch back and forth between various websites for statistics. It’s very inconvenient. ArtiPub is designed to solve these problems.

Why create ArtiPub when there are already platforms for multiple articles, such as OpenWrite? Other platforms may also be an alternative, but they require users to upload their account information, such as cookies or account passwords, to the server of the other party, which is not secure, and their account information will be leaked in case of a problem on the platform. While I believe that platforms do not operate users’ accounts in a malicious way, there is a risk that your account privacy could be compromised and your property on the platform could be damaged. ArtiPub avoids this security risk by not requiring users to upload their account information. All account information is stored in the user’s own database.

In addition, because ArtiPub is open source, JS source code is relatively easy to understand, scalability is very strong, users if there are other platform access requirements, can change the source code to achieve their own needs, do not have to wait for platform update. The development team will also continue to develop ArtiPub to make it more practical and easy to use.

Support platform

  • The Denver nuggets
  • SegmentFault
  • CSDN
  • Jane’s book
  • zhihu
  • Open source in China
  • Today’s headline
  • Blog garden