jokergaming / Times

Times•λ , the entrance of project lambda and the world

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

A Hacker-News-like social information platform written in Haskell, focusing on IT industry and computer science, which users could publish general news, academic contents and questions through it. Reducing time wasting on nonnutritive information is the major goal

Demo

Chinese blog article

Version

0.2.9

First Launch

Please configure following settings before your first launch:

  1. Set 'allow-newer: true' in ~/.stack/config.yaml

  2. Configure postgre server, and set dbname/pass/etc. in Skeleton/Kernel/Internal/Model.hs

  3. Set email account in Skeleton/Kernel/Core/Mail.hs

  4. Put dist of ProLambda/Times-default-theme into static folder

  5. -- initializeStatDb

    -- initializeNewsDb

    -- setLevel "xxx" 12 (+1) -- "xxx" could be any registered user, for setting super admin, can be run when has at least one user

    uncomment up 3 lines in Main.hs, this is necessary init step, then do following

    $stack build
    $stack exec proj
    
  6. Comment all 3 lines in step 4 and then $stack build again

  7. For DISQUS configuration, please check relative JS code in main.html

  8. For PostgreSQL setting, please refer to official doc

  9. create 'database' and 'imgs' folder in root dir

Demo

Submit

Comment

Full Demo on Youtube

Click Here

Design

About

Times•λ , the entrance of project lambda and the world

License:GNU General Public License v3.0


Languages

Language:Haskell 62.5%Language:HTML 22.1%Language:JavaScript 15.4%