GithubHelp home page GithubHelp logo

isabella232 / vorum Goto Github PK

View Code? Open in Web Editor NEW

This project forked from vlang/vorum

0.0 0.0 0.0 46 KB

Blogging/forum software written in V

License: GNU General Public License v3.0

HTML 34.95% V 65.05%

vorum's Introduction

Vorum

Open-source blogging/forum software written in V.

(The name is not final, name suggestions are welcome.)

This is pre-alpha software.

Lots of things are broken and not implemented yet in V, vweb, and vorum.

Setting up the database

Install Postgres and libpq, create a database vorum (you can use any name), and run the initialization script:

psql -f init_postgres_db.sql -d vorum

Edit Postgres connection settings (Postgres user and db name) in main.v.

Building

V 0.1.23 is required.

git clone https://github.com/vlang/vorum
cd vorum
v .
./vorum

Running vorum on http://localhost:8092...

Deploying

Everything, including HTML templates, is in one binary ~100 KB file vorum. That's all you need to deploy.

Setting up GitHub authentication

Right now only GitHub authentication is supported. (Traditional registration via email will be implemented soon.)

  • Create a GitHub oauth app (GitHub Settings => OAuth Apps).

  • Set Authorization callback URL to https://your-forum-url.com/oauth_cb.

  • Copy Client ID and Client Secret, and update the values in oauth.v or set VORUM_OAUTH_CLIENT_ID and VORUM_OAUTH_SECRET env vars.

Known problems:

  • vweb HTML templates are precompiled and are part of the application's binary, so every time a template is changed, the entire app has to be rebuilt. This will be resolved in the future.

  • no epoll/kqueue yet. So the performance is pretty bad until this is implemented: about 1k req/sec.

  • Right now only Postgres is supported. SQLite, MySQL, and MS SQL backends will be supported in the future.

vorum's People

Contributors

davtur19 avatar medvednikov avatar vbrazo avatar watzon 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.