Getting Started
Update the CLI to latest version
npm install -g @angular/cli
Download the project source
git clone https://github.com/erikhaddad/firebrew.git
Change to parent directory
cd firebrew
Start dev server
ng serve --port 4200 --o
Browser should open to http://localhost:4200
Change environment variables src\environments\environments.ts AND src\environments\environments.prod.ts
export const environment = {
...,
firebase: {
apiKey: '<!-- YOUR KEY HERE -->',
authDomain: '<!-- YOUR KEY HERE -->',
databaseURL: '<!-- YOUR KEY HERE -->',
projectId: '<!-- YOUR KEY HERE -->',
storageBucket: '<!-- YOUR KEY HERE -->',
messagingSenderId: '<!-- YOUR KEY HERE -->'
}
};
Run PWA build script and server
./run.sh
Deploy your app
./deploy.sh