Concepts that are considered here
- use pnpm and the pnpm workspaces
- Using types / interfaces for server and client
- Server loads sample data from json file
- Use services in client that implement an interface to handle a resource's api and lists
- Services are tested with jest
- Components for item and list respect their responsibilities. List handles list, item handles item.
- InPlace editing for updates
Run pnpm dev:https
mkcert
is a simple tool for making locally-trusted development certificates. It requires no configuration.
Install mkcert
on your system. You can find installation instructions on the mkcert GitHub page.
-
Install mkcert and create a local CA:
mkcert -install
This command installs a local CA (Certificate Authority) in the system trust store.
-
Generate a certificate for your local development domain:
mkcert localhost
-
Use the generated certificates: The certificates will be saved in the current directory with the names
localhost.pem
andlocalhost-key.pem
. You can use these files in your web server configuration.