https://github.com/nim-lang/nimforum Skip to content Sign up * Why GitHub? Features - + Mobile - + Actions - + Codespaces - + Packages - + Security - + Code review - + Issues - + Integrations - + GitHub Sponsors - + Customer stories- * Team * Enterprise * Explore + Explore GitHub - Learn and contribute + Topics - + Collections - + Trending - + Learning Lab - + Open source guides - Connect with others + The ReadME Project - + Events - + Community forum - + GitHub Education - + GitHub Stars program - * Marketplace * Pricing Plans - + Compare plans - + Contact Sales - + Education - [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this organization All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} nim-lang / nimforum * Notifications * Star 609 * Fork 55 Lightweight alternative to Discourse written in Nim forum.nim-lang.org/ MIT License 609 stars 55 forks Star Notifications * Code * Issues 99 * Pull requests 2 * Actions * Projects 0 * Wiki * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Wiki * Security * Insights master Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags 6 branches 3 tags Code * Clone HTTPS GitHub CLI [https://github.com/n] Use Git or checkout with SVN using the web URL. [gh repo clone nim-la] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Go back Launching Xcode If nothing happens, download Xcode and try again. Go back Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @juancarlospaco juancarlospaco Use input type search on search instead of text (#291) ... a1601b4 May 16, 2021 Use input type search on search instead of text (#291) a1601b4 Git stats * 632 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time .github/workflows Use matrix nim version Apr 24, 2021 docker Add docker environment for local development (#257) Aug 23, 2020 localhost.local/public Improve default stylesheet. May 24, 2018 mockup Moves mockups to mockup folder. May 21, 2018 public Center view count of popular threads Sep 22, 2020 src Use input type search on search instead of text (#291) May 16, 2021 tests Tests for locking threads (#284) Apr 27, 2021 .gitignore Ignore more generated files Mar 3, 2020 .gitmodules Rearranges directories and files. May 18, 2018 README.md Add docker environment for local development (#257) Aug 23, 2020 license.txt Add setup file. Fixes #139. May 27, 2018 nimforum.nimble Revert "Replace webdriver with halonium" Sep 1, 2020 setup.md Better way of updating nginx configuration Oct 31, 2019 View code [ ] nimforum Examples in the wild Features Setup Dependencies Development With docker Troubleshooting Copyright License README.md nimforum NimForum is a light-weight forum implementation with many similarities to Discourse. It is implemented in the Nim programming language and uses SQLite for its database. Examples in the wild forum.nim-lang.org forum.nim-lang.org Features * Efficient, type safe and clean single-page application developed using the Karax and Jester frameworks. * Utilizes SQLite making set up much easier. * Endlessly customizable using SASS. * Spam blocking via new user sandboxing with great tools for moderators. * reStructuredText enriched by Markdown to make formatting your posts a breeze. * Search powered by SQLite's full-text search. * Context-aware replies. * Last visit tracking. * Gravatar support. * And much more! Setup See this document. Dependencies The following lists the dependencies which you may need to install manually in order to get NimForum running, compiled*, or tested+. * libsass * SQLite * pcre * Nim (and the Nimble package manager)* * geckodriver+ + Firefox+ [*] Build time dependencies [+] Test time dependencies Development Check out the tasks defined by this project's nimforum.nimble file by running nimble tasks, as of writing they are: backend Compiles and runs the forum backend runbackend Runs the forum backend frontend Builds the necessary JS frontend (with CSS) minify Minifies the JS using Google's closure compiler testdb Creates a test DB (with admin account!) devdb Creates a test DB (with admin account!) blankdb Creates a blank DB test Runs tester fasttest Runs tester without recompiling backend To get up and running: git clone https://github.com/nim-lang/nimforum cd nimforum git submodule update --init --recursive # Setup the db with user: admin, pass: admin and some other users nimble devdb # Run this again if frontend code changes nimble frontend # Will start a server at localhost:5000 nimble backend Development typically involves running nimble devdb which sets up the database for development and testing, then nimble backend which compiles and runs the forum's backend, and nimble frontend separately to build the frontend. When making changes to the frontend it should be enough to simply run nimble frontend again to rebuild. This command will also build the SASS nimforum.scss file in the public/css directory. With docker You can easily launch site on localhost if you have docker and docker-compose. You don't have to setup dependencies (libsass, sglite, pcre, etc...) on you host PC. To get up and running: cd docker docker-compose build docker-compose up And you can access local NimForum site. Open http://localhost:5000 . Troubleshooting You might have to run nimble install karax@#5f21dcd, if setup fails with: andinus@circinus ~/projects/forks/nimforum> nimble --verbose devdb [...] Installing karax@#5f21dcd Tip: 24 messages have been suppressed, use --verbose to show them. Error: No binaries built, did you specify a valid binary name? [...] Error: Exception raised during nimble script execution The hash needs to be replaced with the one specified in output. Copyright Copyright (c) 2012-2018 Andreas Rumpf, Dominik Picheta. All rights reserved. License NimForum is licensed under the MIT license. About Lightweight alternative to Discourse written in Nim forum.nim-lang.org/ Topics nim sqlite forum jester karax-framework Resources Readme License MIT License Releases 3 v2.0.0 Latest May 27, 2018 + 2 releases Packages 0 No packages published Contributors 32 * @dom96 * @jyapayne * @gradha * @Araq * @stisa * @Yardanico * @hlaaftana * @euantorano * @andinus * @Leu-Gim * @FedericoCeratto + 21 contributors Languages * Nim 87.7% * HTML 6.6% * SCSS 5.5% * Other 0.2% * (c) 2021 GitHub, Inc. * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.