mongodb & payload helloworld

支 持 本 站: 捐贈伺服器等運維費用,需要您的支持!

1. install mongodb
brew tap mongodb/brew
brew install mongodb-community
mongod --version
brew services start mongodb/brew/mongodb-community

2. install compass management tool
download compass from https://www.mongodb.com/try/download/compass

3. install payload

npx create-payload-app

Welcome to Payload. Let's create a project!

✔ Project name? ... helloworld
✔ Choose project template › todo
✔ Enter MongoDB connection ... mongodb://127.0.0.1/helloworld

Creating a new Payload app in ./helloworld

✔ Project directory created
✔ Dependencies installed
✔ .env file created
✔ Payload project successfully created

★ Launch Application:

- cd ./helloworld
- npm run dev

★ Documentation:

- Getting Started: https://payloadcms.com/docs/getting-started/what-is-payload
- Configuration: https://payloadcms.com/docs/configuration/overview




支 持 本 站: 捐贈伺服器等運維費用,需要您的支持!

4. install payload cms tool
git clone https://github.com/payloadcms/payload.git
# node -v
v14.21.3
# % brew list |grep python
[email protected]


4.1. install payload form-builder tool
https://github.com/payloadcms/payload/tree/master/examples/form-builder

4.2 run form-builder
4.2.1 web page
cd payload/examples/form-builder/nextjs
npm run dev
http://localhost:3000/

4.2.2 cms tool
cd payload/examples/form-builder/cms
npm run dev
http://localhost:8000/admin

4.2.3 config file
examples/form-builder/cms/src/payload.config.ts

支 持 本 站: 捐贈伺服器等運維費用,需要您的支持!

發布時間: