smart-notice-board
Full-stack notice management system with secure CRUD functionality, PostgreSQL database integration, reusable components, responsive design, and Framer Motion animations.
Summary
| Latest Version | Unknown |
|---|---|
| License | Unknown |
| CI Status | Failing |
| Stars | 1 |
| Forks | 0 |
| Open Issues | 0 |
| Last Commit | 2026-06-30 |
| Downloads | 0 |
| Last Indexed | 2026-11-24 09:10 |
Installation
nimble install smart-notice-board
choosenim install smart-notice-board
git clone https://gitlab.com/ankit-v9/notice-board
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| smart-notice-board | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://gitlab.com/ankit-v9/notice-board |
|---|---|
| Homepage | https://gitlab.com/ankit-v9/notice-board |
| Registry Source | gitlab |
README
Smart Notice Board
A web-based notice board application built with Next.js, Prisma, and PostgreSQL. It lets you publish, browse, and manage notices (exams, events, general announcements) with priority levels and an admin panel for full CRUD control.
Features
- Home feed — browse all published notices in a clean card layout
- Admin panel — create, edit, and delete notices from a dedicated dashboard
- Categories — organize notices as
EXAM,EVENT, orGENERAL - Priority levels — mark notices as
NORMALorURGENT - Image support — attach an image URL to a notice
- Stats overview — quick summary cards on the dashboard
- Responsive UI — built with Tailwind CSS and animated with Framer Motion
Tech Stack
- Next.js (Pages Router) with TypeScript
- Prisma ORM with PostgreSQL
- Tailwind CSS for styling
- Framer Motion for animations
- Lucide React for icons
Project Structure
notice-board-main/
├── components/ # UI components (Home, Admin, Navbar, Sidebar, NoticeCard, NoticeForm, ...)
├── lib/ # Prisma client and validation helpers
├── pages/
│ ├── api/notices/ # REST API routes (GET/POST/PUT/DELETE)
│ ├── notice/ # New and edit notice pages
│ └── index.tsx # Main entry page (Home / Admin toggle)
├── prisma/
│ └── schema.prisma # Database schema and migrations
└── styles/ # Global styles
Getting Started
Prerequisites
1. Clone and install dependencies
git clone <your-repo-url>
cd notice-board-main
npm install
2. Configure environment variables
Create a .env file in the project root:
DATABASE_URL="postgresql://USER:PASSWORD@HOST:PORT/DATABASE?schema=public"
3. Set up the database
npx prisma migrate dev
npx prisma generate
4. Run the development server
npm run dev
Open http://localhost:3000 to view the app.
Available Scripts
| Command | Description |
|---|---|
npm run dev |
Start the development server |
npm run build |
Build the app for production |
npm run start |
Start the production server |
npm run lint |
Run ESLint |
Data Model
The core entity is Notice:
| Field | Type | Description |
|---|---|---|
id |
String | Unique identifier (cuid) |
title |
String | Notice title |
body |
String | Notice content |
category |
Enum | EXAM, EVENT, or GENERAL |
priority |
Enum | NORMAL or URGENT |
publishDate |
DateTime | When the notice should be published |
imageUrl |
String? | Optional image attachment |
createdAt |
DateTime | Auto-set creation timestamp |
updatedAt |
DateTime | Auto-updated modification timestamp |
API Routes
GET /api/notices— list all noticesPOST /api/notices— create a new noticeGET /api/notices/[id]— get a single noticePUT /api/notices/[id]— update a noticeDELETE /api/notices/[id]— delete a notice
Deployment
The easiest way to deploy is via Vercel, the platform built by the creators of Next.js. Don't forget to set the DATABASE_URL environment variable in your deployment settings and run npx prisma migrate deploy against your production database.
License
This project is open source and available for personal or educational use.