Archived - moved and renamed to new server.
https://code.nonshy.com/nonshy/website
Noah Petherbridge
e80d4e6ad6
* iPad in landscape mode was "desktop" size so got the full nav bar but the "More" drop-down was unusable. Add work-arounds for large touch devices to make the nav bar functional. * "Click" on the "More" button will pin it open so that the drop-down doesn't rely solely on mouseover events. Clicking off the open drop-down or clicking again on "More" toggles it hidden. * The logged-in user menu now drops its menu on hover like "More" did. * The logged-in user menu adds "TouchStart" events: touching the menu button toggles its drop-down to appear, canceling the link to "/me" that clicking the menu button does on desktops. Clicking off the open drop-down closes it. * Add notification indicators for "mobile" devices which only showed the brand and hamburger menu by default. Next to the hamburger button will be badges for number of friend requests or messages, with icons. Click the badge to go to the relevant page, or it hints that there are notifications in the drop-down. |
||
---|---|---|
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.