Archived - moved and renamed to new server. https://code.nonshy.com/nonshy/website
This repository has been archived on 2022-08-26. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
Go to file
Noah bb08ec56ce Finish Forums + Likes & Notifications
Finish implementing the basic forum features:
* Pinned threads (admin or board owner only)
* Edit Thread settings when you edit the top-most comment.
* NoReply threads remove all the reply buttons.
* Explicit forums and threads are filtered out unless opted-in (admins
  always see them).
* Count the unique members who participated in each forum.
* Get the most recently updated thread to show on forum list page.
* Contact/Report page: handle receiving a comment ID to report on.

Implement Likes & Notifications
* Like buttons added to Photos and Profile Pages. Implemented via simple
  vanilla JS (likes.js) to make ajax requests to back-end to like/unlike.
* Notifications: for your photo or profile being liked. If you unlike,
  the existing notifications about the like are revoked.
* The notifications appear as an alert number in the nav bar and are read
  on the User Dashboard. Click to mark a notification as "read" or click
  the "mark all as read" button.

Update DeleteUser to scrub likes, notifications, threads, and comments.
2022-08-24 21:17:34 -07:00
cmd/gosocial Private Profiles & Misc Improvements 2022-08-21 17:29:39 -07:00
pkg Finish Forums + Likes & Notifications 2022-08-24 21:17:34 -07:00
web Finish Forums + Likes & Notifications 2022-08-24 21:17:34 -07:00
.gitignore Photo Upload & Profile Pictures 2022-08-11 23:04:08 -07:00
Makefile User Profile and Settings Pages 2022-08-10 20:59:59 -07:00
README.md Initial commit 2022-08-09 22:32:19 -07:00
go.mod Photo Upload & Profile Pictures 2022-08-11 23:04:08 -07:00
go.sum Photo Upload & Profile Pictures 2022-08-11 23:04:08 -07:00

README.md

gosocial

Building

Use the Makefile:

  • make setup: install Go dependencies
  • make build: builds the program to ./gosocial
  • make run: run the app from Go sources in debug mode

Configuring

On first run it will generate a settings.json file in the current working directory (which is intended to be the root of the git clone, with the ./web folder). Edit it to configure mail settings or choose a database.

For simple local development, just set "UseSQLite": true and the app will run with a SQLite database.

Usage

The gosocial binary has sub-commands to either run the web server or perform maintenance tasks such as creating admin user accounts.

Run gosocial --help for its documentation.

Run gosocial web to start the web server.

Create Admin User Accounts

Use the gosocial user add command like so:

$ gosocial user add --admin \
  --email name@domain.com \
  --password secret \
  --username admin

Shorthand options -e, -p and -u can work in place of the longer options --email, --password and --username respectively.

License

GPLv2.