jgcapdev / angular-ngrx-threejs

Basic prototype with Angular, Angular Three and NgRx

Home Page:https://angular-ngrx-threejs.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image

Basic scaffolding for Angular Three projects with NgRx

Table of contents πŸ‘‡

✨ How to install

Simply run git clone and then npm install --legacy-peer-deps. You need to use Angular CLI 14.0.2 or newer.

πŸ”§ Project scaffolding

Inside app folder there are several new directories as you can see in the following scaffolding.

.
β”œβ”€β”€ core
β”‚ └── models
β”œβ”€β”€ state
β”‚ β”œβ”€β”€ actions
β”‚ β”œβ”€β”€ reducers
β”‚ └── selectors
└── ...

πŸ”₯ Install dependencies

  • Install Angular Three with npm install --save-dev @angular-three/schematics and npx nx generate @angular-three/schematics:init
  • Install NGRX with npm install @ngrx/store --save.
  • Install NgRx DevToos with npm install @ngrx/store-devtools --save --legacy-peer-deps and add
StoreDevtoolsModule.instrument({
      maxAge: 25,
      logOnly: environment.production,
    }),

into the app.modulle.ts. Then, you need add a Chrome extension called Redux devtoos in order to add a new tab in Developer tools of Chrone.

If you need to install another Angular Three dependency (for example Soba) add it with npm i @angular-three/soba --legacy-peer-deps.

πŸš€ Deployment

The project is deployed on Netlify. We had some troubles during deployment, for example, we added an environment variable called NPM_FLAGS with --legacy-peer-deps.

You can check it out at this link

About

Basic prototype with Angular, Angular Three and NgRx

https://angular-ngrx-threejs.netlify.app/


Languages

Language:TypeScript 75.3%Language:HTML 17.2%Language:JavaScript 6.6%Language:CSS 0.8%