- Payload CMS
- NextJS
- MongoDB
yarn
mongodb
Create a .env
file with the following content:
{
PORT=3000
PAYLOAD_SECRET=<SECRET_KEY>
MONGODB_URI=<MONGODB_SERVER>
NEXT_PUBLIC_SERVER_URL=http://localhost:3000
PAYLOAD_PUBLIC_SERVER_URL=http://localhost:3000
}
Replace the SECRET_KEY
and MONGODB_SERVER
with the correct values. Coordinate with the project owner for this.
Note: Do not commit the
.env
file to git repository.
-
In your terminal, run `mongosh "mongodb+srv://uitph.kmjeil9.mongodb.net/" --apiVersion 1 --username
USERNAME
`- Note: Coordinate with the project owner to get the database USERNAME
- In terminal, run
yarn install
in the root of this project. - In terminal, run
yarn dev