HasithDeAlwis / Hasith-Portfolio-v2

Version two of my portfolio
0 stars 0 forks source link

20/hasith/repo/create payload cms server #23

Closed HasithDeAlwis closed 2 months ago

HasithDeAlwis commented 2 months ago

🛠 Changes being made

✨ What's the context?

📸 Screenshots - If Applicable

Screenshot 2024-09-21 at 7 51 03 AM

Summary by Sourcery

Set up a new CMS server using Payload CMS, including server initialization, configuration, and initial boilerplate collections for content management.

New Features:

Enhancements:

Build:

netlify[bot] commented 2 months ago

Deploy Preview for hasith failed. Why did it fail? →

Name Link
Latest commit 56048cbc3603ec2c6a6bbf75e64de216c3526221
Latest deploy log https://app.netlify.com/sites/hasith/deploys/66eeba254ab0cb0008d2bade
sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request sets up the initial structure for a Payload CMS server to manage content for a personal portfolio. It includes the server configuration, Payload configuration, and boilerplate collections.

File-Level Changes

Change Details Files
Set up the main server file for Payload CMS
  • Import necessary dependencies
  • Configure Express app and environment variables
  • Initialize Payload CMS
  • Set up server to listen on port 3000
apps/payload/src/server.ts
Configure Payload CMS
  • Set up server URL, collections, admin panel, and database adapter
  • Configure CORS and CSRF settings
  • Enable GraphQL
apps/payload/src/payload.config.ts
Create boilerplate collections for Payload CMS
  • Define 'Currently Learning' collection with fields for skill and description
  • Create basic 'User' collection with authentication
apps/payload/src/collections/skills/currently-learning.ts
apps/payload/src/collections/user/user.ts
Set up TypeScript configuration for the Payload CMS app
  • Configure TypeScript compiler options
  • Set module resolution to 'Bundler'
  • Include source files and exclude node_modules and dist
apps/payload/tsconfig.json
Configure Nodemon for development
  • Set up watch mode for TypeScript files
  • Configure execution command with environment variables and TypeScript execution
apps/payload/nodemon.json

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.