This is a simple template for a monorepo containing an SPA built with Vite and with Netlify functions both using Typescript.
It uses npm workspaces so you can have different dependencies for the frontend and the backend.
Run npm install
Run npm start
You can run the tests with npm test
.
To run the e2e test, you need to install playwright
first and then run npm test:e2e
.
Put this into the .vscode/settings.json
file:
{
"eslint.workingDirectories": [
"app",
"functions",
]
}