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:
- 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
andJWT_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:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
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.