Skip to content

RileyManda/sigment-article-hub

Repository files navigation

Sigment Articles Hub

A modern article management platform built with Sigment, featuring user authentication, article creation, and a responsive design system.

📋 Table of Contents

✨ Features

  • 🯉 Sigment — Fine-grained, signals-based reactivity
  • Vite — Fast dev server and production bundling
  • 📜 TypeScript — Type-safe development
  • 🗄️ PostgreSQL — Robust database with Prisma ORM
  • 🔐 Authentication — JWT-based user authentication
  • 📝 Article Management — Create, read, and manage articles
  • 🎨 Responsive Design — Modern UI with custom design system
  • 🧪 Testing — Vitest with comprehensive test coverage

🛠️ Tech Stack

Frontend

  • Sigment - Signals-based reactive framework
  • Vite - Build tool and dev server
  • TypeScript - Type-safe JavaScript
  • CSS - Custom design system with CSS variables

Backend

Database

Development Tools

🚀 Quick Start

Prerequisites

  • Node.js: >= 18.0.0(NB: Works well with v22.13.1)s
  • pnpm: >= 9.14.2
  • PostgreSQL: Database server

Installation

  1. Clone the repository
git clone <repository-url>
cd sigment-article-hub
  1. Install dependencies
pnpm install
  1. Setup environment Create a .env file:
DATABASE_URL="postgresql://username:password@localhost:5432/sigment_articles"
JWT_SECRET="your-super-secret-jwt-key-here"
PORT=3003
NODE_ENV=development
  1. Setup database
pnpm run db:generate
pnpm run db:migrate
pnpm run db:seed

🛠️ Development

Start Both Server and UI

pnpm run dev:all

Individual Commands

Frontend (UI)

pnpm run dev

Backend (Server)

pnpm run server:watch

Production

pnpm run build
pnpm run serve:prod

🧪 Testing

Run Tests

npx vitest

Test Commands

# Run tests once
pnpm run test:run

# Run tests with UI
pnpm run test:ui

🗄️ Database

Prisma Commands

# Generate client
pnpm run db:generate

# Run migrations
pnpm run db:migrate

# Seed database
pnpm run db:seed

# Open Prisma Studio
pnpm run db:studio

# Reset database
pnpm run db:reset

📁 Project Structure

sigment-article-hub/
├── src/
│   ├── components/          # Sigment components
│   ├── assets/css/         # Stylesheets
│   ├── services/           # API and business logic
│   ├── types/              # TypeScript definitions
│   └── router/             # Client-side routing
├── prisma/                 # Database schema and migrations
├── api/                    # Express.js API routes
└── app.ts                  # Server entry point

🌐 URLs

📚 Documentation

👨‍💻 Author

Riley Manda - Full Stack Software Engineer

📄 License

MIT

About

Tiny Article CMS built with Sigment-A tiny framework that packs a punch.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published