A sample for using APIs from mockapi.io
Example: https://mock-api-sample-latest.vercel.app
Install all dependencies:
npm i
Create ".env.local" file in root directory with content below:
NEXT_PUBLIC_API_URL=url_that_you_use
npm run dev
npm run build
npm run start