Git Product home page Git Product logo

content-vastgoed's Introduction

Introduction

Next.js + Sanity portfolio and blog theme.

Recently migrated to the Next.js App Router and TypeScript 🥳.

View a full working demo by visiting nextsanity.com

Tech Stack

Setup

To get started, you'll first need to create a Sanity account.

Once you have created a Sanity account, you can create a new Sanity project by following these instructions.

Next, you'll need to clone this repository, open it in your code editor, run npm install to install the required dependencies and add the following environment variables to a .env.local file:

NEXT_PUBLIC_SANITY_PROJECT_ID – your Sanity Project ID (create an account here - https://sanity.io).
NEXT_PUBLIC_SANITY_DATASET – the name of your dataset (production, development etc).
NEXT_PUBLIC_SANITY_API_VERSION – use the date you created the dataset in the format yyyy-mm-dd.
SANITY_API_READ_TOKEN – create an API token in Sanity with 'Viewer' permissions.
SENDGRID_API_KEY – your SendGrid API key (create an account here - https://sendgrid.com).
YOUR_EMAIL_ADDRESS – contact form submissions will be sent to this email.
WEBSITE_EMAIL_ADDRESS – the email you verified with SendGrid.
NEXT_PUBLIC_SITE_URL - use 'http://localhost:3000' in development and 'https://yourdomain.com' in production.
CONVERT_KIT_API_KEY - your ConvertKit API key
CONVERT_KIT_FORM_ID - your ConvertKit form ID

→ You will need to setup CORS in the Sanity dashboard before you can connect to the Sanity API by following these instructions. Add http://localhost:3000 to connect in development and add your custom domain before deploying to production.

Once everything is set, you can start the development server by running npm run dev. To access your Sanity Studio navigate to localhost:3000/studio. You will need to sign in with the credentials you used to create the project.

→ If you get stuck setting up SendGrid, you can follow this tutorial on Free Code Camp.

→ Remember to run npm install to install all the required dependencies.

→ Remember to add the environment variables to Vercel before deploying to production.

Author

James Rea

For business enquiries, you can email me at [email protected].

content-vastgoed's People

Contributors

jamesreaco avatar peterbrwts avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.