Code Monkey home page Code Monkey logo

agile-data's Introduction

nice watch, wanna make it a web server?

agile-data's People

Contributors

rconjoe avatar travis85 avatar

Watchers

 avatar

agile-data's Issues

Create a relation between photos and the user they belong to

Problem

Each photo in our database looks like this:
Screen Shot 2022-06-08 at 6 22 23 PM

Note how there is an albumId, but no userId.

Now if you look at each album, those have userId's:
Screen Shot 2022-06-08 at 6 23 43 PM

So, if we have a given photo and we want to find out what user it belongs to, we have to first look up the album it belongs to, then check the userId we find there.

It would be easier if we could have a userId on each photo to avoid this double-lookup, so:

Requirements

Write code that adds a userId field to every photo, containing the user ID of the owner of that photo.

Be sure to comment your code if needed.

populate database with placeholder data

JSON Placeholder API has a bunch of fake data it can return for us.
Put everything in every category into its own collection in firestore. We just want to store all the data they offer so we have our own copy of it to mess with in a database (firestore). e.g. 'posts' collection in firestore should have 100 post documents in it, 'comments' collection in firestore should have the 500 comments, etc...

Screenshot from 2022-06-04 00-44-08

How to use the API:

https://jsonplaceholder.typicode.com/
https://jsonplaceholder.typicode.com/guide

Create initial scaffolding for app

I'm going to scaffold out a basic express app with a firebase project and all that set up already to save time.

The idea is that we have an app with a bunch of unfinished features that we will build out as an Agile project, similar to how you'd do it at a lot of tech companies.

Requirements:

  • setup firebase project and initialize sdk's in code
  • scaffold jsonplaceholder data fetching and put some of it in firestore
  • come up with some features that require relating some of the jsonplaceholder data manually

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.