1
0
Fork
You've already forked frontend
0
No description
2026年01月23日 02:26:13 +03:00
.vscode final hopefully data loading scheme 2025年11月05日 10:08:15 +03:00
packages/frontend updates 2026年01月23日 02:26:13 +03:00
tool split frontend and backend 2025年10月31日 12:45:06 +03:00
.gitignore switch away from paraglide 2025年10月31日 17:57:27 +03:00
.prettierignore switch away from paraglide 2025年10月31日 17:57:27 +03:00
.prettierrc split frontend and backend 2025年10月31日 12:45:06 +03:00
.stylelintignore split frontend and backend 2025年10月31日 12:45:06 +03:00
.stylelintrc.json split frontend and backend 2025年10月31日 12:45:06 +03:00
CONTRIBUTING.md split frontend and backend 2025年10月31日 12:45:06 +03:00
eslint.config.js split frontend and backend 2025年10月31日 12:45:06 +03:00
package.json updates 2026年01月23日 02:26:13 +03:00
pnpm-lock.yaml updates 2026年01月23日 02:26:13 +03:00
pnpm-workspace.yaml switch away from paraglide 2025年10月31日 17:57:27 +03:00
README.md object route 2025年11月05日 11:51:46 +03:00
tsconfig.json split frontend and backend 2025年10月31日 12:45:06 +03:00

ok so here's the deal. initially i was going to make a JS backend and run the frontend as another endpoint...

BUT! it turns out that the javascript frontend ecosystem is abysmal and will not help you if you aren't 100% bought into a framework. you just can't host a server-side-rendered frontend as "just another endpoint". this sucks. what the fuck.

that is why you need to host and maintain this as a separate service. i'm sorry, it's out of my hands. and as a bonus i get to use a better language for the non-presentation parts

and no i am NOT doing a pure js-dependant single-page-app. fuck that.

requirements

  • node
  • pnpm (for building)

external services

developing

  1. set up a local reverse proxy such as Caddy
  2. pnpm i (for dependencies)
  3. pnpm run -r /^gen:/
  4. edit packages/frontend/.env as appropriate
  5. run the backend on localhost:5014 (default), configuring it to be on the same hostname as the frontend, as logging in requires this
  6. pnpm run -r dev

typescript and eslint may complain until you've ran dev or build at least once, as some type definitions get generated at build time

building

  1. pnpm i (for dependencies)
  2. pnpm run -r /^gen:/
  3. pnpm run build

you can then place the packages/frontend/build directory anywhere a compatible node installation exists