This is the code accompanying the Medium post on how to build a Next.js app with Grommet, using mock data from unmock for development.
First ensure that you have a recent version of Node.js and yarn installed.
Install dependencies in node_modules/
:
yarn
Start the development server:
yarn start
Navigate to http://localhost:3000
.
You may notice that the app is complaining about missing UNMOCK_TOKEN
environment variable. To suppress the message and to ensure private mocks, sign up for free at https://unmock.io and start the server with
UNMOCK_TOKEN={your token here} yarn start
If you notice an error or you'd like to add something new to this example, please open an issue. We really appreciate the feedback and support!
Please note that this project is governed by the Meeshkan Community Code of Conduct. By participating in this project, you agree to abide by its terms.