create-roboto-next-sanity

1.0.12 • Public • Published

Create Roboto Next Sanity

This repository contains the source code for a CLI tool designed to scaffold a Next.js application integrated with Sanity.io. It automates the setup of a new project, including downloading necessary files, setting up Sanity configurations, and initializing a git repository.

Features

  • Downloads and sets up a Next.js project from a predefined template.
  • Configures Sanity project settings automatically.
  • Initializes a git repository for version control.
  • Provides commands for development and production environments.

Features

  • Mono repo structure with Next.js and Sanity CMS packages
  • Automated setup using a CLI tool
  • Preconfigured for preview mode and other useful development features Optimized for developer productivity

Installation

This package is intended to be used as a global CLI tool. You can run it using npx:

npx create-roboto-next-sanity@latest

Getting Started

This package is intended to be used as a global CLI tool. You can run it using npx:

npx create-roboto-next-sanity@latest PROJECT_NAME
  • Follow the prompts to configure your project.
  • Once setup is complete, navigate to the project directory:
cd PROJECT_NAME

Install dependencies:

npm install

Run the development server:

npm run dev

Open your browser and navigate to http://localhost:3000 to view the application running Next js and localhost:3333 to view the sanity studio.

Mono Repo Structure

The CLI tool generates a mono repo with the following structure:

  • web: A Next.js application
  • studio: A Sanity CMS instance

The web package is configured to source content from the studio package.

Learn More

For further information on Next.js and Sanity CMS, refer to the following resources:

Deployment on Vercel

To deploy your Next.js application effortlessly, consider using the Vercel Platform. For more details on deployment, visit the Next.js deployment documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i create-roboto-next-sanity

Weekly Downloads

155

Version

1.0.12

License

ISC

Unpacked Size

3.8 MB

Total Files

5

Last publish

Collaborators

  • robotostudio