GithubHelp home page GithubHelp logo

stevenleeg / gobb Goto Github PK

View Code? Open in Web Editor NEW
130.0 130.0 26.0 342 KB

A simple and fast bulletin board written in Go.

License: Other

Go 51.51% CSS 23.84% JavaScript 1.39% Dockerfile 0.33% PLSQL 0.12% HTML 22.81%

gobb's Introduction

gobb's People

Contributors

chimeracoder avatar clehner avatar dingbat avatar jamesa avatar stevenleeg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gobb's Issues

React and Graphql

Hi,
What is your opinion about, use React and Graphql for the client side?
image

Ensure first user is admin

Ensure that the first user who registers (id: 1) is assigned to the admin role by default. This rids of the installation step that involves going into postgres and running that UPDATE query.

ERROR: relation "goose_db_version" does not exist

`2024-07-03 18:13:37.864 +04 [14151] ERROR: relation "goose_db_version" does not exist at character 36
2024-07-03 18:13:37.864 +04 [14151] STATEMENT: SELECT version_id, is_applied from goose_db_version ORDER BY id DESC
2024-07-03 18:13:37.864 +04 [14151] ERROR: permission denied for schema public at character 14
2024-07-03 18:13:37.864 +04 [14151] STATEMENT: CREATE TABLE goose_db_version (
id serial NOT NULL,
version_id bigint NOT NULL,
is_applied boolean NOT NULL,
tstamp timestamp NULL default now(),
PRIMARY KEY(id)
);
2024-07-03 18:13:37.866 +04 [14151] ERROR: relation "settings" does not exist at character 27
2024-07-03 18:13:37.866 +04 [14151] STATEMENT: select "key","value" from "settings" where "key"=$1;
2024-07-03 18:18:31.840 +04 [14117] LOG: checkpoint starting: time
2024-07-03 18:18:32.194 +04 [14117] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.002 s, sync=0.108 s, total=0.355 s; sync files=2, longest=0.058 s, average=0.054 s; distance=0 kB, estimate=0 kB; lsn=0/1972B60, redo lsn=0/1972B28
2024-07-03 18:54:41.767 +04 [14151] ERROR: relation "boards" does not exist at character 88
2024-07-03 18:54:41.767 +04 [14151] STATEMENT:
SELECT
boards.*,
views.time AS viewed_on
FROM boards
LEFT OUTER JOIN views ON
views.post_id=(SELECT id FROM posts WHERE board_id=boards.id AND parent_id IS NULL ORDER BY latest_reply DESC LIMIT 1) AND
views.user_id=$1
ORDER BY
ordering ASC

2024-07-03 18:54:41.768 +04 [14151] ERROR: relation "users" does not exist at character 22
2024-07-03 18:54:41.768 +04 [14151] STATEMENT: SELECT COUNT() FROM users
2024-07-03 18:54:41.768 +04 [14151] ERROR: relation "users" does not exist at character 15
2024-07-03 18:54:41.768 +04 [14151] STATEMENT: SELECT * FROM users ORDER BY created_on DESC LIMIT 1
2024-07-03 18:54:41.768 +04 [14151] ERROR: relation "posts" does not exist at character 22
2024-07-03 18:54:41.768 +04 [14151] STATEMENT: SELECT COUNT(
) FROM posts
2024-07-03 18:54:41.768 +04 [14151] ERROR: relation "users" does not exist at character 15
2024-07-03 18:54:41.768 +04 [14151] STATEMENT: SELECT * FROM users WHERE last_seen > current_timestamp - interval '5 minutes' AND hide_online != true
2024-07-03 18:54:41.768 +04 [14151] ERROR: relation "settings" does not exist at character 27
2024-07-03 18:54:41.768 +04 [14151] STATEMENT: select "key","value" from "settings" where "key"=$1;
2024-07-03 18:54:41.769 +04 [14151] ERROR: relation "settings" does not exist at character 27
2024-07-03 18:54:41.769 +04 [14151] STATEMENT: select "key","value" from "settings" where "key"=$1;
2024-07-03 18:54:41.769 +04 [14151] ERROR: relation "settings" does not exist at character 27
2024-07-03 18:54:41.769 +04 [14151] STATEMENT: select "key","value" from "settings" where "key"=$1;

`
here is the log of postgres

Add breadcrumbs for boards

Currently can't see a way to traverse the board hierarchy. "Posts in general" could be "Board Index >> General" or something. Maybe it works and it's disabled? Don't know.

Make usernames case insensitive

It's possible to create usernames with the same name but different cases, which is a problem. Make usernames case insensitive when registering, checking, and logging in.

Add webhook support

It would be nice if there was an interface for adding webhooks. This could be a list of URLs that get pinged when a post is created or edited. This would allow for services like an IRC bot that would post in a channel whenever a new post is made or topic is started on the board.

Push for SSL

  • Get SSL running on the demo site (and currently running instances).
  • Add documentation for getting an SSL reverse proxy running and highly recommend using it.

Add LICENSE

Best practice. Do this before you forget.

Add banning system

Some way of banning users and IP addresses by moderators/administrators.

Investigate (non-fatal) error source

I'm periodically seeing things like this in the log:

[error] Could not get latest post: (sql: no rows in result set)
[error] Cannot select user (sql: no rows in result set)
Something weird is going on here: parent_id: 1171, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (1171))
[error] Cannot select user (sql: no rows in result set)
Something weird is going on here: parent_id: 865, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (865))
Something weird is going on here: parent_id: 865, page_id: 0[error] Something went wrong in posts ([error] Could not get parent (865))

Not exactly sure what could be causing them (I know where the errors are occurring, just not why).

Empty signature boxes are shown

If you haven't set a signature and make a post no signature is shown.

If you set a signature, remove it (set the field to nothing in your user settings), and then post, a signature box is shown.

Possible solution would be to set user.Signature.Valid to false if the user's signature is set to an empty string.

Implement registration spambot protection

Something like recaptcha. Make sure it's optional (on the admin's end).

Not a requirement for the milestone, but it might be useful to optionally collect e-mail addresses and require e-mail validation.

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.