Coder Social home page Coder Social logo

zmzlois / angular-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jm2097/angular-boilerplate

0.0 0.0 0.0 5.67 MB

⛩️ Minimalistic Angular starter

Home Page: https://angularboilerplate.vercel.app

Shell 0.18% JavaScript 2.69% TypeScript 51.79% CSS 4.15% HTML 41.19%

angular-boilerplate's Introduction

Angular Boilerplate

angular-logo
Lightweight & minimalistic Angular starter

https://angularboilerplate.vercel.app

Contributing Guidelines · Submit an Issue


⚗️ Features

  • Lazy loading
  • Standalone components
  • OS/Light/Dark modes
  • Strongly-typed storage
  • TailwindCSS

🛠️ Tweaks

  • TailwindCSS configuration:

    You can find the tailwind.config.js file in the project root, then you can refer to https://tailwindcss.com/docs/configuration to learn how to make your own adjustments.

  • Set default theme (first time load)

    Go to src\app\lib\constants.ts and choose the default theme.

    OS preference

    export const DEFAULT_BASE_THEME: AppTheme = 'system' as const;

    Light mode

    export const DEFAULT_BASE_THEME: AppTheme = 'light' as const;

    Dark mode

    export const DEFAULT_BASE_THEME: AppTheme = 'dark' as const;
  • Enable a new local/session storage item

    Go to src\app\lib\utils\storage\storage.types.ts and add a new item name in the StorageObjectType type and a new key value pair in the StorageObjectMap type.

    image

    After that, you can use the new item. image

⛩️ Project structure

├───app
│   ├───lib
│   │   ├───components
│   │   │   ├───footer
│   │   │   ├───layouts
│   │   │   │   └───layout-horizontal
│   │   │   ├───logo
│   │   │   └───navbar
│   │   ├───guards
│   │   ├───interceptors
│   │   ├───interfaces
│   │   ├───enums
│   │   ├───services
│   │   │   ├───auth
│   │   │   └───theme
│   │   └───utils
│   │       └───storage
│   └───pages
│       ├───auth
│       │   ├───login
│       │   └───register
│       ├───home
│       ├───profile
│       ├───screens
│       │   └───not-found
│       └───settings
│           ├───accessibility
│           ├───account
│           └───appearance
├───assets
├───environments
└───theme
    ├───01-base
    ├───02-components
    ├───03-utilities
    └───tailwindcss

🧙‍♂️ Commands

Command Description NPM Yarn PNPM Background command
ng See available commands npm run ng yarn ng pnpm ng ng
start Run app in development mode npm start yarn start pnpm start ng serve
build Build app for production npm run build yarn build pnpm build ng build
watch Run build when files change npm run watch yarn watch pnpm watch ng build --watch --configuration development
test Run unit tests npm run test yarn test pnpm test ng test
test:run Run unit tests with headless browser and without watch mode npm run test:run yarn test:run pnpm test:run ng test --watch=false --browsers ChromeHeadless
lint Lint code npm run lint yarn lint pnpm lint ng lint

angular-boilerplate's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jm2097 avatar mahmoudibrahim03 avatar renovate-bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.