Skip to content

danielrbk/Texas-Hold-em-game-center

 
 

Repository files navigation

Get Started

  1. Download and install Visual Studio Code
  2. Install Node.js
  3. Install some tools > npm install --global firebase-tools firebase-bolt typescript
  4. > git clone https://github.com/Danifayn/Texas-Hold-em-game-center.git TexasHoldem
  5. > npm install to install all dependecies
  6. Open the newly created TexasHoldem directory in Visual Studio Code
  7. Code away.

Overview

Basically you need to know two things:

  1. functions/src is where you write triggers for firebase in a language called Typescript
    • 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
  2. database.rules.bolt is where you define security rules for the database in a language called Bolt
  3. Quick tip - ctrl + ~ opens the built-in terminal in Visual Studio Code

Unit Testing

  1. unit testing is done with jasmine
  2. write your unit tests in a file named *.spec.ts in the src directory
  3. run the tests using npm run test

How to access the firebase console

  1. Go to Firebase
  2. Login using:
  3. Press go to console

How to create new branches and checkout branches

create new branches

  1. Press ctrl+~
  2. In the console enter git branch <branch_name>

checkout branches

  1. Press ctrl+~
  2. In the console enter git checkout <branch_name> Other way to checkout:
  3. Click on the name branch at the left bottom of the screen.
  4. Choose the wanted branch.

About

A workshop on Software engineering project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.8%
  • HTML 31.0%
  • JavaScript 3.2%