GithubHelp home page GithubHelp logo

wordpress-demo's Introduction

#ERP

Angular starter for enterprise-grade front-end projects, built under a clean architecture that helps to scale and maintain a fast workflow.

⚗️ Features

  • Strict mode.
  • Lazy loading.
  • Smart and pure components pattern.
  • Components types (e.g. component, page).
  • Self-contained components and encapsulated modules.
  • Auth scheme
  • Settings scheme
  • User scheme
  • PWA
  • i18n
  • Dynamic titles and content meta tags.
  • TailwindCSS + Autoprefixer + PurgeCSS setup.
  • Dark mode and theme configuration.
  • Scalable CSS architecture in favor of TailwindCSS layers.
  • Lighthouse reports improved.
  • Migration from TSLint to ESLint.
  • ESLint migration.

📄 Pages

  • General
    • home
    • not-found
  • Auth
    • sign-in
    • sign-up
    • forgot-password
    • forgot-password-email-sent
    • password-reset
    • password-reset-succeeded
    • password-reset-failed
  • Settings
    • account
    • appearance
    • billing
    • blocked-Users
    • notifications
    • security
    • security-log
  • User
    • my-profile
    • overview
  • Features
    • dashboard

🧱 Self-contained components

  • breadcrumb
  • footer
  • header
  • theme-panel

📡 Services

  • AuthService
  • SeoService
  • ThemeService

📛 Custom directives

  • click-outside (detects when the user clicks outside an element).

🧪 Custom pipes

  • bytes (transforms a numeric value into bytes, KB, MB, GB, etc.).

🛠️ Make some initial tweaks

  • Change application title:

    Go to src/index.html and inside the title tag, replace "Angular Boilerplate" with your app name.

  • Change paths of the pages:

    Go to src/app/core/structs/path.enum.ts to find all the registered routes in an enum file.

    For example, you could replace sign-in with SignIn, login or iniciar_sesion

  • Change titles, descriptions, and robots of the pages:

    Every page has a .route file that contains an exported constant that holds the title, description and a robot's metatag that indicates if it can be indexed or followed by a web crawler.

  • Change your TailwindCSS configuration:

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

  • Change light and dark mode colors:

    Go to src/theme/01-base/variables.scss and change them to your preference.

  • Set a default theme (First time load)

    Go to src\app\@core\services\theme\theme.service.ts and change the following line of code:

    from operating system preference

    private currentTheme$ = new BehaviorSubject<ThemeList>(
      this.currentTheme || ThemeList.System
    );

    to light mode

    private currentTheme$ = new BehaviorSubject<ThemeList>(
      this.currentTheme || ThemeList.Light
    );

    or dark mode

    private currentTheme$ = new BehaviorSubject<ThemeList>(
      this.currentTheme || ThemeList.Dark
    );

⛩️ Project structure

├───app
│   ├───+auth
│   │   ├───pages
│   │   │   ├───forgot-password
│   │   │   ├───forgot-password-email-sent
│   │   │   ├───password-reset
│   │   │   ├───password-reset-failed
│   │   │   ├───password-reset-succeeded
│   │   │   ├───sign-in
│   │   │   └───sign-up
│   │   └───services
│   ├───+settings
│   │   └───pages
│   │       ├───account
│   │       ├───appearance
│   │       ├───billing
│   │       ├───blocked-users
│   │       ├───notifications
│   │       ├───security
│   │       └───security-log
│   ├───+user
│   │   └───pages
│   │       ├───my-profile
│   │       └───overview
│   ├───@components
│   │   ├───breadcrumb
│   │   ├───footer
│   │   ├───header
│   │   └───theme-panel
│   ├───@containers
│   │   ├───home
│   │   └───not-found
│   ├───@core
│   │   ├───directives
│   │   │   └───click-outside
│   │   ├───guards
│   │   ├───interceptors
│   │   ├───pipes
│   │   │   └───bytes
│   │   ├───services
│   │   │   ├───seo
│   │   │   └───theme
│   │   ├───structs
│   │   └───utils
│   └───features
│       └───dashboard
├───assets
├───environments
├───public
│   └───icons
└───theme
    ├───01-base
    ├───02-components
    └───03-utilities

🧙‍♂️ Commands

Command Description NPM Yarn Background command
ng See available commands npm run ng yarn ng ng
dev Run your app in development mode & open app npm run dev yarn dev ng serve -o
start Run your app in development mode npm start yarn start ng serve
start:es Run your app in development mode in spanish npm run start:es yarn start:es ng serve -c=es --port 4201
build Build your app npm run build yarn build ng build
build:prod Build your app ready for production npm run build:prod yarn build:prod ng build --prod --build-optimizer --aot --stats-json
build:i18n Build your multilingual app ready for production npm run build:i18n yarn build:i18n ng build --prod --build-optimizer --aot --stats-json --localize
test Run your unit tests npm run test yarn test ng test
lint Use ESLint to lint your app npm run lint yarn lint ng lint
e2e Run your e2e integration tests npm run e2e yarn e2e ng e2e
i18n:extract Extract i18n messages from i18n directives npm run extract yarn extract ng extract-i18n --output-path locale --ivy
analyze Open webpack-bundle-analyzer npm run analyze yarn analyze webpack-bundle-analyzer dist/angular-boilerplate/stats.json

wordpress-demo's People

Contributors

iamzeshanali avatar

Watchers

 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.