Dumping ground for potential rewrites (NOT changes to the existing code)
Find a file
2022-09-16 10:20:09 +02:00
backend fix: make PATCH /users/@me work with names/pronouns 2022-09-16 00:48:43 +02:00
frontend feat(frontend): add sentry 2022-09-16 10:20:09 +02:00
scripts feat: add user/member names/pronouns tables 2022-09-06 23:24:06 +02:00
.gitignore don't serve frontend from api server anymore 2022-07-11 22:35:20 +02:00
.prettierrc add frontend template + GET /users/{userRef} route 2022-05-04 16:27:16 +02:00
go.mod feat(api): add rate limiting 2022-05-26 00:41:29 +02:00
go.sum feat(api): add rate limiting 2022-05-26 00:41:29 +02:00
LICENSE initial commit 2022-05-02 17:19:37 +02:00
Makefile feat(frontend): incomplete port to next.js 2022-08-16 00:01:54 +02:00
README.md chore: update README 2022-09-08 14:10:45 +02:00

pronouns.cc

A work-in-progress site to share your pronouns and preferred terms.

Stack

  • API server is written in Go with the chi router
  • Persistent data is stored in PostgreSQL
  • Temporary data is stored in Redis
  • The frontend is written in TypeScript with React, using Next for server-side rendering

Development

When working on the frontend, run the API and then use yarn dev in frontend/ for hot reloading.

Building

Run make backend to build the API server, then run yarn build in frontend/.

Running

Both the backend and frontend are expected to run behind a reverse proxy such as Caddy.

The frontend should serve every possible path except anything starting with /api/, which should be routed to the backend instead. Make sure to rewrite requests going to the API server to remove the starting /api/.

License

Copyright (C) 2022  Sam <u1f320>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.