nice watch, wanna make it a web server?
agile-data's Introduction
agile-data's People
agile-data's Issues
Create a relation between photos and the user they belong to
Problem
Each photo in our database looks like this:
Note how there is an albumId
, but no userId
.
Now if you look at each album, those have userId
's:
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...
How to use the API:
https://jsonplaceholder.typicode.com/
https://jsonplaceholder.typicode.com/guide
Install npm packages
install npm packages joe forgot to do:
- firebase
- express
- cors
- body-parser
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.