Skip to content

mjaysona/uniglobalindustrialtrading

Repository files navigation

Tech stack

  • Payload CMS
  • NextJS
  • MongoDB

Installation

Install the following:

  • yarn
  • mongodb

Run in local server

Setup environment variables

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.

1. Connect to mongodb cluster

  • 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

2. In the terminal, go to project root directory and run yarn to install packages.

  1. In terminal, run yarn install in the root of this project.
  2. In terminal, run yarn dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published