The source code of the main nonshy.com website.
https://www.nonshy.com
Noah
400a256ec8
* Add "Site Gallery" page showing all public+gallery member photos. * Add "Certification Required" decorator for gallery and other main pages. * Add the Certification Photo workflow: * Users have a checklist on their dashboard to upload a profile pic and post a certification selfie (two requirements) * Admins notified by email when a new certification pic comes in. * Admin can reject (w/ comment) or approve the pic. * Users can re-upload or delete their pic at the cost of losing certification status if they make any such changes. * Users are emailed when their photo is either approved or rejected. * User Preferences: can now save the explicit pref to your account. * Explicit photos on user pages and site gallery are hidden if the current user hasn't opted-in (user can always see their own explicit photos regardless of the setting) * If a user is viewing a member gallery and explicit pics are hidden, a count of the number of explicit pics is shown to inform the user that more DO exist, they just don't see them. The site gallery does not do this and simply hides explicit photos. |
||
---|---|---|
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.