Spartan

screenshot of Spartan
angular
vite
tailwind
drizzle-orm

Spartan

Cutting-edge tools powering Angular full-stack development.

Overview

The spartan repository is a work in progress project with two main efforts:

  1. spartan/ui - an effort to port the shadcn/ui project into the Angular ecosystem. This involves creating unstyled primitives similar to Radix using Angular Cdk and other community solutions, and then adding the shadcn styles to these primitives.
  2. spartan/stack - an example application running on Supabase, Drizzle, Analog, tRPC, Tailwind, Angular, and Nx. It serves as both the documentation page introducing the stack and UI library.

Features

  • Porting of 30 out of 41 UI primitives from shadcn/ui to Angular ecosystem
  • Storybook project for UI primitives
  • Cypress e2e testing set up for storybook
  • Example application running on multiple technologies including Supabase, Drizzle, Analog, tRPC, Tailwind, Angular, and Nx
  • Documentation page introducing the stack and UI library

Prerequisites

  • Install yarn (or a different package manager)
  • Set up a Supabase account (free)
  • Install NodeJs (version 18.13.0)
angular
Angular

Angular is a TypeScript-based open-source framework by Google for building dynamic single-page applications and cross-platform mobile apps with MVC architecture and a rich set of features.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

drizzle-orm
Drizzle ORM

Drizzle ORM is a TypeScript ORM for SQL databases designed with maximum type safety in mind. It comes with a drizzle-kit CLI companion for automatic SQL migrations generation. Drizzle ORM is meant to be a library, not a framework. It stays as an opt-in solution all the time at any levels.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

ui-kit
UI Kits & Components

A UI kit provides developers with a set of reusable components that can be easily integrated into a website or application. These components are pre-designed with consistent styling and functionality, allowing developers to save time and effort in the design and development process. UI kits can be either custom-built or third-party, and often include components for buttons, forms, typography, icons, and more.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

prismjs
Prism JS

PrismJS is an open-source, lightweight, and extensible syntax highlighting library that supports a wide range of programming languages and markup formats.

rollup
Rollup

RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.

Storybook

Storybook is a tool for developing and testing UI components in isolation. It provides a sandbox environment where you can experiment with different props and states to see how your component responds.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.