Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 1.77 KB

File metadata and controls

43 lines (30 loc) · 1.77 KB

Notes

This is a Next.js (16.3.0) project using Prisma (7.9.1) and SQLite as the Database. It's Tailwinded and uses no TypeScript. ATTOW, the node version is 26.2.0. Feel free to fork or pull request your changes.

There are APIs available at /api/posts and /api/posts/[id] and the pages /register, /login and /dashboard. Change or delete the default app/page.js to build your blog or news site.

Make sure you have an .env file with the following:

DATABASE_URL="file:./dev.db"
AUTH_SECRET=a_32_chars_long_string

Run npx auth secret to generate a secret.

You can query the dev.db file and perform other operations directly with the sqlite3 command line tool. Run npx prisma generate when doing changes in the database. Better yet, run this line after npm i.

Awesome

Getting Started

git clone https://github.com/gesfon/cms.git
cd cms/
cms $ npm i
cms $ npx prisma generate
cms $ npm run dev

Screenshots

Here you have screenshots of the frontend, dashboard, auth pages and APIs.

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

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.