Run the development server:
npm run dev
# or
yarn devWhen you first run the project you may see the following error:
Missing XXX environment variable. See README.md for instructions of how to fix this error.
You can fix this error by doing the following:
- Duplicate the
.env.defaultfile and name that copy.env.local - Set
COLLECTION_NAMEto your own name, eg:COLLECTION_NAME=johnSmith - Set
DB_BASE_URLto your MongoDB Cloud database URL, eg:DB_BASE_URL=mongodb+srv://username:password@cluster-name.ab123.mongodb.net - Re-run the project and the error should be resolved