IERoboticsClub / club_website_v0

https://IERoboticsClub.com
6 stars 5 forks source link

Officer and User Directory #15

Open velocitatem opened 1 year ago

velocitatem commented 1 year ago

Create a single collection called users in which a document might look like this:

{
  "firstName": "John",
  "familyName": "Doe",
  "rank": "President",
  "profile": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8cmFuZG9tJTIwcGVvcGxlfGVufDB8fDB8fHww&w=1000&q=80"
}

This feature should also come with the following endpoints:

velocitatem commented 11 months ago

Alright so lets try to figure out the architecture for this, it would be great to start collecting the data somewhere easy for everyone to enter, I would start with a simple google forms, where we ask people for name, position and anything else we would want. Then once we collect the data from all members, we export to a csv, transform and upload to mongo where we have most of the data. Once all the data is in the DB we can create an endpoint that returns 5 random JSON.

Now comes a blocker, for this, how do we efficiently deal with the image data, because we don't want to store the data on our server?

velocitatem commented 11 months ago

Alright so lets use Vercel Blobs since it will have the best performance for our website, we just use a script to download the images from Google Drive and then upload them to the Vercel Blob Storage which is very good. This will get use direct URLS we can then store in our mongo.