- Download and install Visual Studio Code
- Install Node.js
- Install some tools
> npm install --global firebase-tools firebase-bolt typescript
- Firebase Tools - for deploying stuff to firebase
- Firebase bolt - for writing security rules
- Typescript - for writing the triggers
> git clone https://github.com/Danifayn/Texas-Hold-em-game-center.git TexasHoldem
> npm install
to install all dependecies- Open the newly created
TexasHoldem
directory in Visual Studio Code - Code away.
Basically you need to know two things:
functions/src
is where you write triggers for firebase in a language calledTypescript
- Get started & Documentation
.../TexasHoldem/functions> npm run functions
- update triggers on the server- the file
functions/src/index.ts
contains an example defining two triggers
database.rules.bolt
is where you define security rules for the database in a language calledBolt
- Get started & Documentation
.../TexasHoldem> firebase deploy --only database
- update security rules on the server
- Quick tip -
ctrl + ~
opens the built-in terminal in Visual Studio Code
- unit testing is done with jasmine
- write your unit tests in a file named
*.spec.ts
in thesrc
directory - run the tests using
npm run test
- Go to Firebase
- Login using:
- Email -
[email protected]
- Password -
texas shuffle
- Email -
- Press
go to console
- Press
ctrl+~
- In the console enter
git branch <branch_name>
- Press
ctrl+~
- In the console enter
git checkout <branch_name>
Other way to checkout: - Click on the name branch at the left bottom of the screen.
- Choose the wanted branch.
- Go to VSCode.
- Press
Ctrl+Shift+X
- Enter
Cucumber
in the search bar - Click install.
- After installing, click on
reload
.
1.Go to Cron Jobs
2. Login using:
- Email - [email protected]
- Password - texasShuffle
3. Select an Event.