-
Tener instalado NodeJS https://nodejs.org/es/
-
Instalar el ( Client Line Interface )
angular-cli
de forma global:
npm install -g angular-cli
- Ir al directorio donde vas a trabajar
cd misproyectos
- Clonar el proyecto o si quieres descargarlo aqui:
git clone https://github.com/JoseChirinos/angular2sucre.git
- Para que funcione deberas entrar a la carpeta donde clonaste o descomprimiste y luego instalar todas las dependencias:
cd my-app
npm install
- Para conectarte a tu servicio firebase deberan copiar sus configuraciones en
app.module.ts
:
const firebaseConfig = {
apiKey: "TU_API_KEY",
authDomain: "TU_DOMINIO_FIREBASE.firebaseapp.com",
databaseURL: "TU_DOMINIO_FIREBASE.firebaseio.com",
storageBucket: "TU_DOMINIO_FIREBASE.appspot.com",
messagingSenderId: "TU_NUMERO_LARGO"
};
- Habilitar en firebase tu servicio de autenticación
- Para iniciar el proyecto ejecutar:
ng serve
- Para generar el proyecto final y dejarlo listo para producción
ng build --aot