didx-xyz / ssi-trust-registry

Trust Registry for Self-Sovereign Identity Ecosystems
Apache License 2.0
6 stars 2 forks source link

chore: add workspaces #125

Closed jakubkoci closed 11 months ago

jakubkoci commented 11 months ago

This PR introduces Yarn Workspaces with two packages: frontend and backend. The frontend package will contain the UI built with Next.js, and the backend is just our current Node.js service built with Express. Because Next.js runs its own server by default, we must figure out how to run them all together.

A. Run just Next.js and implement our backend as API routes inside the Next.js frameworks.

B. Run two Node.js servers on a different port

I already dismissed the first option because it would require significant changes, and I feel that running two services shouldn't be so difficult, it might be beneficial long-term. Or we can always move our endpoint to the frontend Next.js as API routes.

I only set up the project in a way that it should run just Node.js backend as we have done it so far. Later, we can figure out how to run the frontend part.