Git Product home page Git Product logo

Comments (3)

glynnbird avatar glynnbird commented on June 12, 2024

Thanks for the feedback, Mike.

It sounds like your problems stem from the App being unable to connect to the CouchDB database(s), because the app creates the databases at startup and this doesn't seem to have happened in your case.

I tried to reproduce your problem by installing CouchDB locally using MacPorts

sudo port install couchdb
sudo port load couchdb

You can verify that CouchDB is running by visiting "http://localhost:5984/" in your browser which should return some JSON.

Then you can change your birdreader/includes/config.json to look like this:

{
  "cloudant": {
     "server": "http://localhost",
     "port": 5984,
     "username": "",
     "password": "",
     "secure": false
  }
}

N.B.make sure "secure" is false, otherwise the app will try and use HTTPS to connect to the server.

If you remove the databases you manually created with Futon, when you run birdreader for the first team, you should get:

> node birdreader.js 
Listening on port 3000
Creating views - first time only

The "Creating views" line is important. This means that it has connected to the database, has created the databases and has inserted the essential views in your "articles" database.

You can verify that the articles database is fully formed by visiting 'http://localhost:5984/articles/_all_docs' in your browser and you should see a document with the id "design/matching"

{
    "total_rows": 1,
    "offset": 0,
    "rows": [
        {
            "id": "_design/matching",
            "key": "_design/matching",
            "value": {
                "rev": "1-2d54cc9d1694dd0352a836c745022d43"
            }
        }
    ]
}

If this works, then you should be good to go. Import some feeds and wait for the articles to be fetched.

In response to your issue I've updated the startup logic so that it outputs what it's doing to the console and I've updated the README to indicate that you need 'make' on a Mac.

Hope this helps.

Glynn

from birdreader.

mikehedman avatar mikehedman commented on June 12, 2024

That fixed it. I had: https in my server line, and secure set to true - switching them off, deleting my handmade db's, and pulled your recent change....and everything worked.
Thanks for your quick reply. Awesome!
Mike

from birdreader.

glynnbird avatar glynnbird commented on June 12, 2024

Great news!

from birdreader.

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.