Installation and Configuration

You must follow the documentation setp by step in this order to do a successful installation and configuration.

A Complete Step-by-Step Video Tutorial for Installing Template, Configuring Your Blog with Sanity and MDX for Docs, Setting up Auth with NextAuth, Managing Databases, Enabling Stripe Payments for Subscription, and Everything you need to make up and running.


Steps

Installing starter templates steps are different than ordinary templates, you have to follow the steps strictly without skipping any of them.

  1. Installation
  2. Authentication and DB Setup
  3. Database Setup - PostgreSQL on Vercel
  4. Sanity Integration
  5. Markdown Integration
  6. Stripe Integration

Installation

Here are the steps you need to follow to install the dependencies.

1.Download and extract the template from Next.js Templates.

2.cd into the template directory then run this command to install all the dependencies

    npm install

or

    yarn install

or

    yarn install

Follow Next Steps

You must add all integrations and update environment variables (.env) before starting server or running build command.

The Home page has a Blog section and a Pricing section. For these to work you have to integrate Strip and Sanity. Follow the documentation and steps to complete these integrations.

2. Authentication and DB Setup (PostgreSQL on Vercel)

4. Sanity Integration.

3. Markdown Integration

5. Stripe Integration


When all these are done, Then you can start the project on the local server

    npm run dev

It’ll start the template on localhost:3000.

The documentation includes all the guides you need for the integrations.

Deploying on PaaS

If you are using a GitHub repo then you can go with free-of-cost and easy-to-use options like Vercel, or Netlify they offer decent-free tiers for Next.js hosting.

If you are using Prisma ORM (Comes with All Starter Templates)

Make sure to edit build command like this while you use Prisma as ORM while deploying to Vercel.

prisma-vercel