Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Angular to v16 #42

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8dc0006
update project files
FouomaOscar Jun 5, 2018
a355dca
Delete .angular-cli.json
FouomaOscar Jun 5, 2018
029e54f
Add files via upload
FouomaOscar Jun 5, 2018
904ce20
Add files via upload
FouomaOscar Jun 5, 2018
d45bade
Update README.md
FouomaOscar Jun 5, 2018
7d37833
Update README.md
FouomaOscar Jun 5, 2018
9842e0b
Update README.md
FouomaOscar Jun 5, 2018
4085da0
Update README.md
FouomaOscar Jun 5, 2018
2be6841
Update README.md
FouomaOscar Jun 5, 2018
18e6ddc
Update README.md
FouomaOscar Jun 5, 2018
26ec29d
Update README.md
FouomaOscar Jun 5, 2018
983a520
Update README.md
FouomaOscar Jun 5, 2018
43231e8
Update README.md
FouomaOscar Jun 5, 2018
e04b910
Update README.md
FouomaOscar Jun 5, 2018
b7b2f58
Update user.service.ts
rjrb8 Dec 23, 2018
e4ea3bb
Merge pull request #1 from rjrb8/patch-1
FouomaOscar Jan 31, 2019
e83bf88
Angular version updated to v6.2.9 AngularFire updated to v5.1.1
FouomaOscar Feb 6, 2019
8777d78
Angular version updated to v7
FouomaOscar Mar 11, 2019
23ab6b1
Angular version updated to v7
FouomaOscar Mar 11, 2019
828d245
angular version update to v16
Aug 27, 2023
b3eefe5
Update README.md
FouomaOscar Aug 27, 2023
dbfb38f
@angular/fire librairy updated from v7 to v17
Nov 12, 2023
ca3cf44
Merge branch 'main' of https://github.com/FouomaOscar/firebase-authen…
Nov 12, 2023
d17f92f
@angular/fire librairy updated from v7 to v16
Nov 12, 2023
8137626
@angular/fire librairy updated from v7 to v16
Nov 12, 2023
33fef1a
@angular/fire librairy updated from v7 to v16
Nov 12, 2023
ec53d71
Merge branch 'main' of https://github.com/FouomaOscar/firebase-authen…
Nov 12, 2023
6ed6a55
readme file updated
Nov 12, 2023
c86e3cb
Merge branch 'main' of https://github.com/FouomaOscar/firebase-authen…
Nov 12, 2023
57edb18
Merge remote-tracking branch 'upstream/master'
Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Editor configuration, see http://editorconfig.org
# Editor configuration, see https://editorconfig.org
root = true

[*]
Expand All @@ -8,6 +8,9 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.ts]
quote_type = single

[*.md]
max_line_length = off
trim_trailing_whitespace = false
24 changes: 12 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
# Compiled output
/dist
/tmp
/out-tsc
/bazel-out

# dependencies
# Node
/node_modules
npm-debug.log
yarn-error.log

# IDEs and editors
/.idea
.idea/
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
# Visual Studio Code
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
.history/*

# misc
/.sass-cache
# Miscellaneous
/.angular/cache
.sass-cache/
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
# System files
.DS_Store
Thumbs.db
4 changes: 4 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=827846
"recommendations": ["angular.ng-template"]
}
20 changes: 20 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "ng serve",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: start",
"url": "http://localhost:4200/"
},
{
"name": "ng test",
"type": "chrome",
"request": "launch",
"preLaunchTask": "npm: test",
"url": "http://localhost:9876/debug.html"
}
]
}
42 changes: 42 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
// For more information, visit: https://go.microsoft.com/fwlink/?LinkId=733558
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
},
{
"type": "npm",
"script": "test",
"isBackground": true,
"problemMatcher": {
"owner": "typescript",
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "bundle generation complete"
}
}
}
}
]
}
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
# Firebase Authentication with Angular
# Firebase Authentication with Angular 16 done with standalone logic

This project is part of an Angular tutorial where we explore how to setup a simple email/password as well as social login authentication workflows for Angular apps using the awesome AngularFire library.

Get the step by step free tutorial in https://angular-templates.io/tutorials/about/firebase-authentication-with-angular

## Installation

**Please support this project by simply putting a Github star ⭐. Share this repo with friends on Twitter and everywhere else you can. 🙏 Thanks**
- Run `npm install` to install all the required dependencies

## Installation
- go to your project on https://console.firebase.google.com retrieve your credentials informations in format:

Run `npm install` to install all the required dependencies
```
apiKey: "YOUR_CREDENTIALS_HERE",
authDomain: "YOUR_CREDENTIALS_HERE",
databaseURL: "YOUR_CREDENTIALS_HERE",
projectId: "YOUR_CREDENTIALS_HERE",
storageBucket: "YOUR_CREDENTIALS_HERE",
messagingSenderId: "YOUR_CREDENTIALS_HERE"
```

- Then run `ng serve` to start a dev server.

Then run `ng serve` to start a dev server.
Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
- Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.


![](https://s3-us-west-2.amazonaws.com/angular-templates/tutorials/firebase-authentication-with-angular/firebase-tutorial-login-screenshot.png)
145 changes: 60 additions & 85 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,138 +3,113 @@
"version": 1,
"newProjectRoot": "projects",
"projects": {
"my-app": {
"root": "",
"sourceRoot": "src",
"firebase-authentication-with-angular": {
"projectType": "application",
"prefix": "app",
"schematics": {
"@schematics/angular:component": {
"style": "scss"
"style": "scss",
"standalone": true
},
"@schematics/angular:directive": {
"standalone": true
},
"@schematics/angular:pipe": {
"standalone": true
}
},
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/my-app",
"outputPath": "dist/firebase-authentication-with-angular",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"node_modules/bootstrap/scss/bootstrap.scss",
"node_modules/bootstrap-icons/font/bootstrap-icons.css",
"src/styles.scss"
],
"scripts": [],
"es5BrowserSupport": true
"scripts": [
"node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
]
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
"maximumWarning": "500kb",
"maximumError": "1mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kb",
"maximumError": "4kb"
}
]
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true
}
}
},
"defaultConfiguration": "production"
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "my-app:build"
},
"configurations": {
"production": {
"browserTarget": "my-app:build:production"
"browserTarget": "firebase-authentication-with-angular:build:production"
},
"development": {
"browserTarget": "firebase-authentication-with-angular:build:development"
}
}
},
"defaultConfiguration": "development"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "my-app:build"
"browserTarget": "firebase-authentication-with-angular:build"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.scss"
"polyfills": [
"zone.js",
"zone.js/testing"
],
"scripts": [],
"tsConfig": "tsconfig.spec.json",
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"my-app-e2e": {
"root": "e2e/",
"projectType": "application",
"prefix": "",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "my-app:serve"
},
"configurations": {
"production": {
"devServerTarget": "my-app:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
"styles": [
"src/styles.scss"
],
"scripts": []
}
}
}
}
},
"defaultProject": "my-app"
}
}
}
14 changes: 0 additions & 14 deletions e2e/app.e2e-spec.ts

This file was deleted.

Loading