Multiple API + Multiple Apps + One Website
by CA Manas Madrecha
- Clone the repo
- Run
npm i:all
to install the dependencies for all workspaces - Run
npm run dev:b
to start the backend API server - Run
npm run dev:f
to start the frontend apps and website
Individual workspaces can be started using npm run dev:<workspace>
- Run
npm run build:all
to build all workspaces - Run
npm run deploy:all
to deploy all workspaces
- Deploy the
b/api
to Cloudflare - Deploy the
f/apps
to Cloudflare - Deploy the
f/website
to Cloudflare Pages
Individual workspaces can be deployed using npm run deploy:<workspace>
- Add new worker to the
b/api
directory (optional if you want to add new API endpoints) - Add new app to the
f/apps
directory - Add new page to the
f/website/pages
directory.