Archived - moved and renamed to new server. https://code.nonshy.com/nonshy/website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
Noah dbc9f9e3b3 Notifications on approved friendship and Cert Photo verdicts 1 month ago
cmd/gosocial Private Profiles & Misc Improvements 1 month ago
pkg Notifications on approved friendship and Cert Photo verdicts 1 month ago
web Notifications on approved friendship and Cert Photo verdicts 1 month ago
.gitignore Photo Upload & Profile Pictures 2 months ago
Makefile User Profile and Settings Pages 2 months ago
README.md Initial commit 2 months ago
go.mod Photo Upload & Profile Pictures 2 months ago
go.sum Photo Upload & Profile Pictures 2 months ago

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.