Code Monkey home page Code Monkey logo

Comments (7)

gbottari avatar gbottari commented on June 19, 2024 1

Do you think importing from CSV files might help? A lot of people are comfortable with spreadsheet software like Microsoft Excel and Google Sheets that can create CSV files. Moreover, you could setup a Google Forms that writes to a spreadsheet to accept submissions in a more user-friendly way.

from quotes.

gbottari avatar gbottari commented on June 19, 2024 1

Yeah, I agree that editing a giant file with quotes is not ideal.
What do you imagine the web app would do? Edit the json file so that the user can open a PR later with it?

from quotes.

nelsonic avatar nelsonic commented on June 19, 2024

@gbottari good question. A CSV interface could be useful for some people in the short-term,
but ultimately it requires people editing the whole dataset and we want to avoid that. 💭

from quotes.

nelsonic avatar nelsonic commented on June 19, 2024

@gbottari our idea was to build a basic web app with 2 tables and a simple UI that would allow people to:

  1. contribute new quotes
  2. enhance existing quotes with a source link and/or tags
  3. download the entire quotes library as JSON with the click of a button as a file
  4. source the quotes via an API similar to: https://phoenix-content-negotiation.herokuapp.com/.json

I wouldn't expect this App to be very complex.
We just don't have much time to build it right now.

from quotes.

gbottari avatar gbottari commented on June 19, 2024

I see. But how would these contributions end up on the quotes.json file in this repo? The app would just write the json file and the contributor would open the PR? Or maybe the app would create the PR for the user? That step is not clear for me.

from quotes.

nelsonic avatar nelsonic commented on June 19, 2024

@gbottari as always, good questions. We either have a trade-off between having more GitHub contributors or we have more quotes because we streamline the contribution process.

If we had infinite time to work on this we would use GitHub Auth and create a PR on behalf the contributor so we get the best of both worlds.

from quotes.

gbottari avatar gbottari commented on June 19, 2024

Oh, I see now @nelsonic . The current workflow is not ideal because the user has to edit the big json file to open a PR. What you wish is to somehow make this process more straightforward.

Having a system to create the PR for the user seems rather complex. I'm trying to think of simpler solutions that might achieve what you want. 🤔

What if we split the contributing step from the actual use of the quotes by the system? What I mean is having a workflow that is easier to contribute and a separate one that compiles the big quotes.json file for the system to read.

Imagine that every quote had its own file. For instance:

quotes
├── abraham-lincoln
│   ├── a-house-divided.json
│   └── important-principles-may.json
├── albert-camus
│   └── autumn-is-a.json
└── albert-einstein
    └── god-always-takes.json

This would make it very easy for someone to find and edit a quote or add more quotes to an author. Then, in another step, a simple script would merge all the quotes generating the quotes.json file to be used by the application only, not the quote contributors.

Would that be helpful?

from quotes.

Related Issues (20)

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.