This is a Next.js project bootstrapped with create-next-app
.
First, clone the repository and cd into the project root directory
Then run the development server:
In a terminal, run any npm or yarn commands below
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
From the root directory, cd into the sanity-backend directory and run the command
sanity start
In order for this application to work as expected, you need to create a file .env.development
and copy the contents of the .sample_env.development
Also replace the necessary keys with the appropriate variable
- NEXT_PUBLIC_SANITY_TOKEN: to be generated from the sanity-backend API settings
- NEXT_SANITY_PROJECT_ID: to be copied from the sanity-backend app
- NEXT_PUBLIC_GOOGLE_API_TOKEN: to be gotten from google cloud by creating an OAuth client ID credential
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.