This is a Next.js 14 website that uses App dir and regenerates on-demand. Content is managed by a built in CMS.
- Next.js 14 with App directory and server functions.
- clerk manages authentication.
- tiptap for a rich text editor.
- Cloudinary hosts images.
- MongoDB is the database.
- Zod for form validation.
Website's author logs in -> chooses a section to edit -> performs CRUD operations inherent to the section. On form submission, a server action is triggered and performs these actions:
- input validation
- If there's an image, upload it to Cloudinary, get hosted image url.
- Save image url and text content to MongoDB.
- Return success/error message to the user.
- Clone repo.
- Create
.env.localfile, copy variables from.env.example. - run
npm installfor dependencies npm run devto run local dev server inhttp://localhost:3000/with local data pulled fromlocal.json.
Please clone, fork, contribute in any way you deem interesting. I've listed some Issues, please feel free to tackle any of them or create new ones.