- Create Firebase Project
- Create "web" app within firebase to get config values"
- Install firebase in your project "npm i firebase
- Create a config file in your project
- Add authentication for email/password and Google
- Create a user from Firebase
- Enable Firestore
- Add rules for firestore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Check i table exists else create it | |
IF NOT EXISTS (SELECT * FROM sys.objects | |
WHERE object_id = OBJECT_ID(N'[dbo].[Country]') AND type in (N'U')) | |
BEGIN | |
CREATE TABLE [dbo].Country( | |
Id int NOT NULL IDENTITY(1,1) PRIMARY KEY, | |
Iso char(2) NOT NULL, | |
Name varchar(80) NOT NULL, | |
NiceName varchar(80) NOT NULL, |