Giter Site home page Giter Site logo

react-slack-clone's Introduction

Ninjas React Firebase Bootcamp

Creating a simple slack clone using React and Firebase. The Bootcamp videos can be found here on YouTube - Part1, Part2.

Running the project

  • Clone the project and then start the project.

    git clone https://github.com/aakash-cr7/react-slack-clone
    cd react-slack-clone
    npm i
    npm start
    
  • Go to firebase console and create your firebase project and then choose a "Web" app to create which will give you firebaseConfig something like this.

    const firebaseConfig = {
      apiKey: 'your-key',
      authDomain: 'your-domain',
      databaseURL: 'your-db',
      projectId: 'your-project',
      storageBucket: 'your-storage',
      messagingSenderId: 'your-messaging-id',
      appId: 'your-app-id',
    };
    
    
    firebase.initializeApp(firebaseConfig);
    

    Add your firebase config to src/firebase.js. NOTE: Dont use the current firebaseConfig as it wont work as I have invoked permissions for anonymous users.

Project Structure

src
├── components
│   ├── App.js
│   ├── MainContainer.js
│   ├── Sidebar.js
│   ├── SignIn.js
│   ├── Slack.js
│   └── index.js
├── firebase.js
├── index.css
├── index.js
└── providers
    └── UserProvider.js

Hosting the project on Firbase

  • For first time users, you have to donwload the firebase-cli.

      npm run build
      npm i -g firebase-tools
      firebase login
      firebase deploy
    
  • For second time users (who have already done the above steps).

      npm run build
      firebase deploy
    

You can read more about firebase cli here.

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.