Can anyone please help me on running someone's code that I downloaded from Github in Visual Studio code
Can anyone please help me on running someone's code that I downloaded from Github in Visual Studio code
You can directly run angular's github project without download it on Stackblitz
just replace github url with stackblitz url :
replace https://github.com/ with https://stackblitz.com/github/
Example :-
GitHub url : https://github.com/onecompileman/angular-stateside
replace with : https://stackblitz.com/github/onecompileman/angular-stateside
Or Run github downloaded angular project from your computer.
Note : You must have nodeJS and angular-cli installed into your computer.
GO into your downloaded folder.
and Open command prompt. and write command : npm install
after complete it. write ng serve --open.
and your project automatically open in your browser.
Try it
npm install commandng serve commandmy-app.Open Powershel/Open Window Here on the popup Menunpm install or npm ing serve or ng serve -open or ng serve -oOpen Visual code
ng new notepad
npm install -g @angular/cli in the Visual Code
cd notepad
ng serve --open
git remote add origin https://github.com/OWNER/notepad.git
git remote -v
origin https://github.com/OWNER/REPOSITORY.git (fetch)
origin https://github.com/OWNER/REPOSITORY.git (push)
Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
If it shows an error as
Could not find module "@angular-devkit/build-angular"
Apply command
npm install --save-dev @angular-devkit/build-angular
to fix it.