Archived - moved and renamed to new server.
https://code.nonshy.com/nonshy/website
Noah Petherbridge
e06bf2f9c4
* Friends: can now see your sent requests awaiting approval too. * Site Gallery: you may see Friends-only photos on the Gallery if you are friends with the owner and the pic is opted-in for the Gallery. * Site Gallery: show color coded visibility icons in card headers. * Improve appearance of Upload Photo page. * Update FAQ |
||
---|---|---|
cmd/gosocial | ||
pkg | ||
web | ||
.gitignore | ||
go.mod | ||
go.sum | ||
Makefile | ||
README.md |
gosocial
Building
Use the Makefile:
make setup
: install Go dependenciesmake build
: builds the program to ./gosocialmake 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.