GithubHelp home page GithubHelp logo

the-ridgeview-post's Introduction

This is a Next.js project bootstrapped with create-next-app.

The Ridgeview Post

Setup Sanity cms

Create a .env.local in your root of your project folder and paste:

NEXT_PUBLIC_SANITY_DATASET=production
NEXT_PUBLIC_SANITY_PROJECT_ID=
SANITY_API_TOKEN=

Note: You do not want to share anything in your env.local with anybody you don't trust. You can get your sanity project id from /your-project/sanity.json at line 7 You can get your sanity api token from sanity.io by selecting your project, then go to the api tab and then add a new API token (select editor), you will get api key, copy that, you can see it again.

Start Next.js

To run from your computer, download the source, run yarn to update the packages and then yarn dev to run a local server. This project was made with and uses the Yarn Package Manager.

npm update
# or
yarn
npm run dev
# or
yarn dev

You can access that server by going to http://localhost:3000

Start Sanity Studio

Start a local instance of Sanity Studio by going into the sanity directory /the-ridgeview-post inside of the project folder and running sanity start. You can the deploy it by running sanity deploy inside that same directory.

Edit the source

Start by editing /pages/index.tsx, change the look and feel of the website however you wish, edit each page at once by editing /pages/post/[slug].tsx or change the header in the /components folder, maybe create your own.

Current packages & dependencies

next-auth react-hook-form react-portable-text sanity @sanity/client tailwindcss Typescript

Project does not work with node.js ^18, next-auth does not support node.js ^18 yet, once updated the project will too.

Learn about Next.js (The framework used to make this project)

Licence MIT

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.