This is a Next.js project bootstrapped with create-next-app
.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
NOTE: In chrome on Mac, you may need to allow Chrome to access local files since we are loading local JSON data instead of using an API
API routes can be accessed on http://localhost:3000/api/food. This endpoint can be edited in pages/api/food.js
.