This is a Next.js web application using a CMS to retrieve data, called sanity.io
In order to make it work localy run the following commands :
yarn install
cd sanity
yarn installCreate a sanity project in your sanity's personnal dashboard (on their website), then update your sanity.json file with the correct information.
Create a .env.development.local file and update .env.production file following the .env.example file.
Run
sanity startOpen http://localhost:3333 with your browser to access your sanity studio. Make sure to add some content in order to create a working front-end.
You can now run your Next.js front-end and see the result. On another terminal in the root directory:
yarn devOpen http://localhost:3000 with your browser to see the result.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.