Skip to content

RileyManda/sigment-article-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

119 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

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

 
 
 

Contributors