Utilice....
This repository holds the TypeScript source code of the angular.io quickstart,
#importante para tener acceso a la API
- Crear un proyecto en https://github.com/settings/developers
- Poner en
Homepage URLyAuthorization callback URLhttp://localhost:3000 (que es donde corre el servidor de angular) esto en https://github.com/settings/developers
- Poner en
github.service.tsque esta en app/services --Lo siguiente. - En la linea
private client_id = '';poner elclient_idque te da https://github.com/settings/developers - En la linea
private client_secret = '';poner elclient_secretque te da https://github.com/settings/developers - En la linea
this.username = ''Poner tu nombre de usuario
Node.js and npm are essential to Angular development.
Get it now if it's not already installed on your machine.Verify that you are running at least node v4.x.x and npm 3.x.x
by running node -v and npm -v in a terminal/console window.
Older versions produce errors.
We recommend nvm for managing multiple versions of node and npm.
git clone https://github.com/RazoDev/GitHub-Search.gitDiscard everything "git-like" by deleting the .git folder.
rm -rf .git # non-Windows
rd .git /S/Q # windowsInitialize this project as a local git repo and make the first commit:
git init
git add .
git commit -m "Initial commit"Create a remote repository for this project on the service of your choice.
Grab its address (e.g. https://github.com/<my-org>/my-proj.git) and push the local repo to the remote.
git remote add origin <repo-address>
git push -u origin masterSee npm and nvm version notes above
Install the npm packages described in the package.json and verify that it works:
npm install
npm startThe npm start command first compiles the application,
then simultaneously re-compiles and runs the lite-server.
Both the compiler and the server watch for file changes.
Shut it down manually with Ctrl-C.
You're ready to write your application.
We've captured many of the most useful commands in npm scripts defined in the package.json:
npm start- runs the compiler and a server at the same time, both in "watch mode".npm run tsc- runs the TypeScript compiler once.npm run tsc:w- runs the TypeScript compiler in watch mode; the process keeps running, awaiting changes to TypeScript files and re-compiling when it sees them.npm run lite- runs the lite-server