Git Product home page Git Product logo

propolis-wiki's Introduction

Propolis Logo

Propolis Wiki

A web3 wiki using the hive blockchain for storing articles.

Setup

Clone the project

  git clone https://github.com/pharesim/propolis-wiki

Go to the project directory

  cd propolis-wiki

edit config file

  cp instance/config_default.py instance/config.py
  nano instance/config.py

If you want the updater script to post to Discord, set DISCORD_WEBHOOK to a working link. Edits can also be announced to ecency.waves and/or leothreads, set the respective accounts in WAVES_ACCOUNT and/or LEOTHREADS_ACCOUNT to activate. The default hive interface for external hive links is https://hive.blog, you can change it by setting HIVE_INTERFACE

Database

Propolis requires a complementary PostgreSQL database to store some metadata. The structure can be derived from the updater.py script until there is a setup script/dump available.

Sync with Hive

The updater script will sync your database with the Hive blockchain

  python3 updater.py

Run Locally

Start the local flask dev server

  ./wiki.sh

Deployment

Install latest dist version including dependencies

  pip install dist/wiki*.whl

To deploy this project, you should use a webserver configured to your needs.

Example apache config:

DocumentRoot /var/www

WSGIDaemonProcess wiki user=wiki group=wiki threads=8
WSGIScriptAlias / /home/wiki/propolis-wiki/wsgi.py

<Directory /home/wiki/propolis-wiki>
    WSGIProcessGroup wiki
    WSGIApplicationGroup %{GLOBAL}
    Require all granted
</Directory>

Build

Create a new dist file

  ./build.sh

Don't forget to bump version in pyproject.toml and wiki/static/js/main.js

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

License

MIT

propolis-wiki's People

Contributors

pharesim avatar hiveuprss avatar

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.