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 URL
yAuthorization callback URL
http://localhost:3000 (que es donde corre el servidor de angular) esto en https://github.com/settings/developers
- Poner en
github.service.ts
que esta en app/services --Lo siguiente. - En la linea
private client_id = '';
poner elclient_id
que te da https://github.com/settings/developers - En la linea
private client_secret = '';
poner elclient_secret
que 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.git
Discard everything "git-like" by deleting the .git
folder.
rm -rf .git # non-Windows
rd .git /S/Q # windows
Initialize 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 master
See npm and nvm version notes above
Install the npm packages described in the package.json
and verify that it works:
npm install
npm start
The 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