Kodeworks.no is split into several applications inside one repository, known as a monorepo.
Web, represents the webpage existing at kodeworks.no, created using NEXT.js.
Studio, is the CMS providing data to Web, using Sanity Studio.
Web is deployed and hosted with Vercel, while Studio uses Sanity's own deployment and hosting.
Turborepo and NPM Workspaces is used to handle Monorepo features.
Recommended Node version: 16
Recommended NPM version: 8
Install dependencies:
npm installAnd run local dev server for Web and Studio:
npm run devServer starts at http://localhost:3000.
Deployment is handle automatically by Vercel listening to webhooks from Github.
Commits to feature branch with a Pull Request are deployed to preview environment.
Commits to master are deployed to production environment.
Sanity studio currently have to be deployed manually.
npm run deploySome images used across the site has been found at https://unsplash.com/.