Giter Club home page Giter Club logo

Comments (8)

kashav avatar kashav commented on June 4, 2024

Scrapers are ready to be used.

I've also started work on the endpoints here. Datasets are currently not available for the food json so I'm using this. Import the collection with:

mongoimport --db cobalt --collection foods --file ./path/to/food.json 

from cobalt.

qasim avatar qasim commented on June 4, 2024

Sweet! We will ship 0.4.0 after cobalt-uoft/[email protected] is shipped, at that point the scrapers will be active for food in the MongoDB collection called food (no s).

from cobalt.

kashav avatar kashav commented on June 4, 2024

I was originally using food, but whenever I tried accessing the endpoint, it'd create a new collection named foods.

I think it's something that Mongoose does automatically.

from cobalt.

kashav avatar kashav commented on June 4, 2024

It looks like we can override that by setting our own name:

new Schema({..}, { collection: 'food' })

http://stackoverflow.com/questions/10547118/why-does-mongoose-always-add-an-s-to-the-end-of-my-collection-name

from cobalt.

qasim avatar qasim commented on June 4, 2024

Hmmmmmm.... maybe we should have it as foods then, just to stay consistent. My bad.

from cobalt.

kashav avatar kashav commented on June 4, 2024

The food endpoints are nearly complete, including filter (this one may need to be revised). The initial documentation is done as well.

I also had to change the scraper a bit so that tags were all lowercase (i'll make a PR when it's finalized). Here's the updated food data for testing.

from cobalt.

qasim avatar qasim commented on June 4, 2024

Submit a PR when you're ready, also a few examples of how to use the filter endpoint. Then we can go over if it's ideal or can be tweaked. Everything's looking good! I'll be busy this week so 0.4.0 probably won't be out the door for another few days (since I still have to finish up that textbook scraper).

from cobalt.

qasim avatar qasim commented on June 4, 2024

Merged #47. Once you've made a PR for the documentation, I will merge it when 0.4.0 ships.

from cobalt.

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.