Automate Angular project setup with Rust!
π² **Project Structure Tree**
project-name βββ src β βββ app β β βββ components β β β βββ PlaceholderComponent1 β β β β βββ PlaceholderComponent1.html β β β β βββ PlaceholderComponent1.scss β β β β βββ PlaceholderComponent1.ts β β β βββ PlaceholderComponent2 β β β βββ PlaceholderComponent2.html β β β βββ PlaceholderComponent2.scss β β β βββ PlaceholderComponent2.ts β β βββ models β β β βββ PlaceholderModel.ts β β βββ service β β β βββ Service.ts β β βββ app.component.html β β βββ app.component.scss β β βββ app.component.ts β β βββ app.module.ts β β βββ app-routing.module.ts β β βββ main.ts β βββ assets β βββ environments β β βββ env.development β β βββ env.production β βββ index.html β βββ ngsw-config.json β βββ styles.scss β βββ README.md βββ .eslintrc.json βββ .gitignore βββ angular.json βββ package.json βββ README.md βββ tsconfig.base.json βββ tsconfig.json
Angular CLI Rust Setup is a handy Rust CLI tool that streamlines Angular project creation, adding powerful features effortlessly.
-
Angular Material Integration: Enhance your UI with Material Design components and icons.
-
PWA Service Worker Configuration: Enable PWA features with service worker support for offline caching and push notifications.
-
RxJS Integration: The project incorporates RxJS for reactive programming, enabling efficient handling of asynchronous tasks. Leverage the power of observables and operators to manage data flow and events in your Angular application.
-
SPA & Browser Routing: Implement smooth navigation between pages with browser routing.
-
Unit Testing Configuration: Easily configure unit testing using Karma and Jasmine.
-
Linting and Code Formatting: Ensure code consistency with ESLint and Prettier integration.
-
Environment Configuration: Customize environment variables for different environments (dev, staging, production).
-
Ahead-of-Time Compilation (AOT): Improve Angular app performance and security with AOT compilation.
Before using Rust2ReactCLI, ensure that you have Node.js version >=16.20.2 installed on your machine. Download Node.js
-
Clone the Rust2AngularCLI repository to your local machine:
git clone https://github.com/flodhest/Rust2AngularCLI.git cd Rust2AngularCLI
-
Ensure Rust is Installed: Before proceeding, make sure you have Rust installed on your machine. If not, you can install Rust by running:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Follow the instructions to complete the installation.
-
Build and Run Rust2AngularCLI:
cargo run
Follow the prompts to enter the project name; the project will be generated in
Rust2AngularCLI/src
. Run the terminal from the new project's folder. -
Project Setup: Once completed, your Angular app project will be set up with the specified structure and files.
-
Navigate to Your Angular App:
cd your_project_name
-
Install Node.js Dependencies:
npm i -g yarn yarn install
This command installs the necessary Node.js dependencies for your Angular app.
-
Run Your Angular App:
yarn start
- Node.js Installation: Download and install Node.js version >16.20.2 manually if needed.
This project is licensed under the MIT License - see the LICENSE file for details.