Code Monkey home page Code Monkey logo

dicerooms's Introduction

This is a test project for Serveless App, using React and Firebase. It's a chat app where you can:

  • Sign-in with Google
  • Create Chat Rooms with passwords
  • Chat and Roll dices, writing (#1)d(#2)+(#3), where:
    • (#1) is the number of dices thrown
    • (#2) is the number of sides of the dices
    • (#3) is an extra addition to the total

Example: The mage cast a fireball with 8d6 of damage, results on The mage cast a fireball with 8d6: [1, 1, 6, 1, 2, 6, 5, 2]=24 of damage

A working version of the project can be seen at:

https://zealous-saha-8447e0.netlify.app/

Example_Image

How to run this project locally

  • Clone this repo
  • Run npm install
  • Create a Firebase project with Firestore, and set the corresponding configuration in src/config/dbFirebase
  • Add a .env file on the root of the project with the next variables from Firebase config:
  REACT_APP_FIREBASE_API_KEY=<Your Firebase apiKey>
  REACT_APP_FIREBASE_MESSAGING_SENDER_ID=<Your Firebase messagingSenderId>
  REACT_APP_FIREBASE_APP_ID=<Your Firebase appId>
  • Run npm run start to start the react web server. This will open the landing page with login button

Available Scripts

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.

npm run deploy-rules

Deploys any change on the rules to your firebase project

dicerooms's People

Contributors

adrianponce89 avatar diolink avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.