Mock backend
Last updated
Last updated
We use a mock backend to provide necessary data and handle JWT authentication as well. This mock backend is shared across various apps for consistent data handling. You can find the mock backend server in the following GitHub repository:
The provided code of Berry directly uses a deployed URL. You can verify this by observing the network tab, where you'll see this URL being accessed at multiple points.
Deployed URL: https://mock-data-api-nextjs.vercel.app/
If you intend to avoid live server and wanted to use same in local, follow below guidelines.
Clone GitHub repo to your machine:
Install and Run:
This will start backend in local at 3010 ports.
Replace the API_URL key in .env
at root location of Berry package:
VITE:
NEXTJS: