Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Officer and User Directory #15

Open
velocitatem opened this issue Sep 14, 2023 · 2 comments
Open

Officer and User Directory #15

velocitatem opened this issue Sep 14, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@velocitatem
Copy link
Contributor

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:

  • GET /members/all
  • POST /members/add
@velocitatem velocitatem added enhancement New feature or request good first issue Good for newcomers labels Sep 14, 2023
@velocitatem velocitatem added this to the Beta Release milestone Oct 6, 2023
@velocitatem
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants