Skip to content

emil6957/trello-clone

Repository files navigation

Trollo

This project was an attempt at recreating a website with similar features to https://trello.com

Overview

The challenge

Users should be able to:

  • Be able to login with google and have data saved
  • Create projects with image or colour backgrounds
  • Be able to favourite projects and be able to see which projects where viewed most recently
  • Be able to create, edit and delete lists/cards
  • Be able to drag and drop cards into different lists

Screenshots

techvil-screenshot

Links

My process

Built with

  • React
  • CSS
  • Flexbox
  • CSS grid
  • Dynamic Routing
  • Firebase
  • Beautiful DnD - A package for implementing drag and drop in react

What i learned

In this project I learnt a lot about using a no SQL database with firebase and also using firebase for other things such as authentication with google. I've also gotten a lot of practice with using react states and components in a lot bigger of a project.

Here is my code for signing in and out with google by using firebase authentication.

import {
    getAuth,
    signInWithPopup,
    signOut,
    GoogleAuthProvider,
    onAuthStateChanged,
} from "firebase/auth";

const [currentUser, setCurrentUser] = useState();

async function signIn() {
    const provider = new GoogleAuthProvider();
    await signInWithPopup(getAuth(), provider);
    await setCurrentUser(getAuth().currentUser);
    await navigate("/");
}

function signOutUser() {
    signOut(getAuth());
    setCurrentUser(null);
}

Useful links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published