Skip to content

Deadly Simple Planning Poker On Firebase By React.js

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
LICENSE-Notice.txt
Notifications You must be signed in to change notification settings

derui/simple-planning-poker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Planning Poker

This project provides functions to do planning poker in online.

Features

  • Sign in/Sign up with pre-registered email/password
  • Create game with story points, or some numbers what you want
  • Invite other user to game
  • Kick player by game owner
  • Change user name/mode
  • Show average estimations after show down
  • Browse round histories from round result
  • Restore round history and view it

Requirement

  • Node >= 16
  • Firebase project you have own
  • pnpm (recommended using latest version)
  • JRE >= 1.8
    • To run firebase emulators

Libraries

  • React.js
  • React Router
  • Vite
  • Vitest
  • Redux Toolkit & React-Redux & Redux-Observable
  • twind

Development

Prerequirement

You should login to firebase before to start development.

$ pnpm i
$ npx firebase login
$ npx firebase init

You must select below in npx firebase init:

  • Realtime database
  • Hosting
  • Emulator

NOTICE: Please do not overwrite firebase.json in a process of initialization. If you overwrite it, this project can not run correctly.

Make config file for local development

Create firebase.config.ts into src. Content of it like below.

export const firebaseConfig = { projectId: "foobar", apiKey: "api" };

It is recommended that the projectId in firebase.config.ts be set to the same value as the one in .firebaserc.

Run test

$ pnpm run test

# want to watch source and run test

$ pnpm run test:watch

Lint

$ pnpm run lint

Start entire development environment

The command below run firebase emulators, tsc for type checking, and vite to build.

$ pnpm run start

Then open localhost:5173 to see top page.

Run End 2 End Test

$ pnpm run ci
# In other terminal
$ npx playwright test

Sources of e2e tests are under tests directory.

storybook

You can start the storybook with the following command.

$ pnpm run storybook

If you want to add stories, or modify current stories, you edit .stories.tsx files under src directory.

Publish to Firebase

Prerequirement

You put firebase.config.prod.ts into under src/ts.

firebase.config.prod.ts export firebaseConfig that like object below.

export const firebaseConfig = {
  apiKey: "api key",
  authDomain: "auth domain",
  projectId: "project id",
  storageBucket: "bucket",
  messagingSenderId: "sender id",
  databaseURL: "database url",
  appId: "app id",
};

You can get the object from your firebase console.

Publish to preview

Notice: This feature is based on beta feature of Firebase Hosting.

$ pnpm run publish:preview

Open your firebase console of Hosting, then you can find preview URL.

Publish to production

$ pnpm run publish:production

And you can open application from your app URL!

LICENSE

MIT

About

Deadly Simple Planning Poker On Firebase By React.js

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE.txt
Unknown
LICENSE-Notice.txt

Stars

Watchers

Forks

Packages

No packages published

Languages