Skip to content

flodhest/Rust2AngularCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rust2AngularCLI πŸ¦€

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.

πŸš€ Features

  • 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.

πŸ›  Prerequisites

Before using Rust2ReactCLI, ensure that you have Node.js version >=16.20.2 installed on your machine. Download Node.js

🏁 Getting Started

πŸš€ **Quick Start Guide**
  1. Clone the Rust2AngularCLI repository to your local machine:

    git clone https://github.com/flodhest/Rust2AngularCLI.git
    cd Rust2AngularCLI
  2. 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.

  3. 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.

  4. Project Setup: Once completed, your Angular app project will be set up with the specified structure and files.

  5. Navigate to Your Angular App:

    cd your_project_name
  6. Install Node.js Dependencies:

    npm i -g yarn
    yarn install

    This command installs the necessary Node.js dependencies for your Angular app.

  7. Run Your Angular App:

    yarn start

🚧 Additional Resources

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages