• Ivy Seo

Angular Set Up in Ubuntu

1. Update

$sudo apt-get update

2. Install Node.js

$ cd ~
$ curl -sL https://deb.nodesource.com/setup_10.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
$ sudo apt-get install nodejs -y

3. Install npm

$curl -L https://npmjs.org/install.sh | sudo sh

4. Check to make sure

$npm -v
$node -v

5. Install Angular CLI

$npm install -g @angular/cli 
// in my case, permission denied, 
// so I added sudo -> sudo npm install -g @angular/cli

6. Start a sample project

$ ng new my-first-test-app // The Angular CLI makes it easy to create an application that already works, right out of the box.
$ cd my-first-test-app
$ ng serve // Easily test your app locally while developing.

7. If your first project is running, get it running/set up is done.

Now it's your stage. Enjoy!

Recent Posts

See All

Generate unique filename: UUID, Path

A: using UUID let my_uuid = Uuid::new_v4(); let file_created = File::create(my_uuid.to_string()).expect("create file failed");     println!("uuid: {}", my_uuid); //  buffer write let mut file_ge

JSON - write .txt file in Rust

pub fn serialize_writeFile(data : &full_data ) -> Result<bool, modbus::Error> { // 1) takes data  // this function takes the m7_data object and serializes the contents and saves the results to a text

Serialize/Deserialize JSON in Rust

This README has some good examples. To deserialize in Rust: use serde::{Deserialize, Serialize}; use serde_json::Result; #[derive(Serialize, Deserialize)] struct Person {     name: String,     age: u