Lightweight alternative to Discourse written in Nim https://forum.nim-lang.org/
Find a file
2018-05-12 14:12:57 +01:00
public Merge pull request #111 from stisa/improve-run 2018-02-18 21:54:14 +00:00
redesign Adds margin to reply box panel. 2018-05-12 14:12:57 +01:00
static proper h1/h2, add images 2017-10-07 22:30:50 +02:00
.gitignore Added binaries to ignored files for convenience 2015-02-15 12:58:15 +01:00
.gitmodules Add Spectre skeleton with builder. 2018-05-07 18:45:03 +01:00
cache.nim get rid of most deprecation warnings 2016-12-31 11:59:03 +01:00
createdb.nim db model: introduce indexes for better performance 2017-01-05 11:49:13 +01:00
editdb.nim db model: introduce indexes for better performance 2017-01-05 11:49:13 +01:00
forms.tmpl Implements thread list in Karax and backend. 2018-05-09 19:02:18 +01:00
forum.json.example Adding reCAPTCHA rather than the custom captcha. 2017-03-07 18:57:05 +00:00
forum.nim Implements user dropdown and the ability to log out. 2018-05-11 17:33:10 +01:00
forum.nim.cfg Adding reCAPTCHA rather than the custom captcha. 2017-03-07 18:57:05 +00:00
fts.sql Improves search. 2014-12-07 02:53:10 +00:00
license.txt More Nimrod -> Nim. Readme improvements. 2015-02-14 15:16:24 +00:00
main.tmpl Implements thread list in Karax and backend. 2018-05-09 19:02:18 +01:00
nimforum.nimble remove cairo dependency and update the readme 2017-10-07 16:54:13 +02:00
ranks.nim adjusted to dom's remarks 2017-01-02 20:49:27 +01:00
README.md close a paren, fix a link 2017-10-07 17:17:08 +02:00
todo.txt all relevant files added 2012-05-05 01:14:26 +02:00
utils.nim Implements logging in. 2018-05-11 13:53:26 +01:00

nimforum

This is Nim's forum. Available at http://forum.nim-lang.org.

Building

You can use nimble (available here) to get all the necessary dependencies.

Clone this repo and execute nimble build in this repositories directory.

See also: Running the forum for how to create the database.

Dependencies

The code depends on the RST parser of the Nim compiler and on Jester.
The captchas for registration uses the reCaptcha module.

bcrypt

On macosx you also need to make sure to use the bcrypt >= 0.2.1 module if that is not yet updated you can install it with:

nimble install https://github.com/oderwat/bcryptnim.git@#fix-osx

You may also need to change nimforum.nimble such that it uses 0.2.1 by changing the dependencies slightly.

[Deps]
Requires: "nim >= 0.14.0, jester#head, bcrypt >= 0.2.1, recaptcha >= 1.0.0"

Running the forum

Important: You need to compile and run createdb to generate the initial database before you can run forum the first time!

Note: If you do not have a mail server set up locally, you can specify -d:dev during compilation to prevent nimforum from attempting to send emails and to automatically activate user accounts

This is as simple as:

nim c -r createdb

After that you can just run forum and if everything is ok you will get the info which URL you need to open in your browser (http://localhost:5000) to access it.

There is an update helper editdb which you can safely ignore for now.

The file cache.nim is included by forum.nim and do not need to be compiled by you.

Copyright

Copyright (c) 2012-2017 Andreas Rumpf, Dominik Picheta.

All rights reserved.

License

Nimforum is licensed under the MIT license.