Skip to content

dopos/dcape-app-journalist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dcape-app-journalist

GitHub Release GitHub code size in bytes GitHub license

journalist application package for dcape.

Docker image used

Addons

Instead using Redacteur, you may use make:

Add user:

$ make user-add USER=johndoe PASS=MySecretPassword123
{"success":true,"user":{"id":"...","username":"johndoe","role":"user"},"message":""}

Add token:

$ make token-add USER=johndoe PASS=MySecretPassword123 TOKEN_NAME=mobile
{"success":true,"token":{"id":"...","type":"qat","tokenname":"mobile","token":"..."},"message":""}

Add feed:

$ make feed-add USER=johndoe PASS=MySecretPassword123 FEED_NAME=habr-best FEED_GROUP=IT FEED_URL=https://habrahabr.ru/rss/best/
{"success":true,"feed":{"id":"...","name":"habr-best","url":"https://habrahabr.ru/rss/best/","group":"IT"},"message":""}

Requirements

Install

By mouse (deploy with drone)

  • Gitea: Fork or mirror this repo in your Git service
  • Drone: Activate repo
  • Gitea: "Test delivery", config sample will be saved to enfist
  • Enfist: Edit config and remove .sample from name
  • Gitea: "Test delivery" again (or Drone: "Restart") - app will be installed and started on webhook host

By hands

git clone --single-branch --depth 1 https://github.com/dopos/dcape-app-journalist.git
cd dcape-app-journalist
make config
... <edit .env.sample>
mv .env.sample .env
make up

License

The MIT License (MIT), see LICENSE.

Copyright (c) 2023 Aleksei Kovrizhkin [email protected]