The source code of the main nonshy.com website.
https://www.nonshy.com
Noah
5638cb2ff7
* On Forums landing page, show who was the most recent commenter on each board's most recently updated post. * Show photo count on Profile Pages on the "Photos" tab. * Revise the mobile and tablet top nav bar: * Always show small badge icons linking to the Site Gallery & Forum * Always show Friends & Messages badges. If no new notifications, they display as grey instead of yellow w/ a number. * Put icons next to most nav bar items, especially the User Menu * Tighten the sprawling page layouts in the Forums to be more compact for mobile screens. * Fix bug where some pages scrolled horizontally on mobile: the root cause was divs with class="content p-2", needs minimum p-3 (but p-4 is used) to provide enough padding to overcome column margins which were pushing the page too wide on mobile. |
||
---|---|---|
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.