包详细信息

postack-cms

postack2.6kMIT1.0.0

Postack CMS - Modern Content Management System

cms, content-management, blog, headless-cms

自述文件

Postack CMS

A modern, real-time blog CMS built with Next.js, Prisma, and Vercel.

Environment Variables

Before running the application, you need to set up the following environment variables:

  1. Create a .env.local file in the root directory with the following variables:
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/postack_cms"

# Authentication
NEXTAUTH_SECRET="your-nextauth-secret-key"
JWT_SECRET="your-jwt-secret-key"

# NextAuth
NEXTAUTH_URL="http://localhost:3000"

# Optional: For production
# NODE_ENV="production"

Important: In production, make sure to set strong, unique values for NEXTAUTH_SECRET and JWT_SECRET. These are used for securing authentication tokens.

Getting Started

First, install the dependencies:

npm install
# or
yarn install

Then, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

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.