Taarifa Installation for Demo
User: Someone who has heard of Taarifa, is interested in seeing how the tool works. Next to no coding ability, but interface-savvy and open enthusiast.
Right now, there isn't a summary of what Taarifa does, nor link to website/blog/twitter/etc from github. There are also a LOT of possible repos for me to look at. How do I pick one? I've picked "Taarifa Waterpoints" because of my actual experience. After doing this, there is a *fantastic* overview of what Taarifa is. I wonder why this doesn't exist at the upper level at GitHub.com/Taarifa.
I installed pip. We might include a line about "how to install" versus "how to upgrade," which is all that currently exists.
Installation "note" section seems weird. Needs formatting or rewording.
I *then* get booted over to the API page. Would it have made sense to install that first? Or to include this as a prereq in the overview descriptions listed on the
github.com/taarifa landing page
A link to MongoDB or some sort of heads up that it needs to be installed separately would be solid
>>Installed pip, MongoDB
>>Both had issues: "Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?"
If it's spitting errors, try these to be sure everything is the most up-to-date...
apt-get update
apt-get upgrade
pip install -U pip
nodejs -v
>> not working? apt-get install nodejs nodejs-dev npm
MongoDB install, via JC at Aspiration
:
As for MongoDB, oh jevus, this one was a bit complicated as it was not
doing to well finding anything archives online, I think there is
something wrong on part of the distributors, nothing wrong on the
computers, but anyway this installation documentation worked out
wonderfully for me:
This has the installation process for both the 64bit and 32 bit, to find
out which type of system you are running you can use the search box that
is in the "Menu" and type System Info and it will say it next to
Operating System.
Now for the tutorial, which ever you have, either 64bit or 32bit, just
do up to step 3, step 4 is not necessary.
Now to check if it is installed do the following (in terminal, each line
is a different input, not all at once):
mkdir -p /data/db
mongod
mongo
Once you input mongo you should just see this ">". You can type in help
and a list of commands will be listed that only work with mongo, but if
you see all this you know that mongo is working, you can exit this by
simply typing in exit :D
Oh and to get rid of the computer god privileges just type in exit,
otherwise if you don't, terminal will tell you that it is still working
on something, which is nothing bad, but I freaked out when I first saw
that haha >.<
reassert where it's installed: source ~/.profile
Also from JC
Not sure why but what you have to do next time you run TaarifaWaterpoints:
mongo
use TaarifaAPI;
db.dropDatabase();
exit
Now you can run both without any error:
python manage.py create_facility
python manage.py create_service
** Waring **
Apparently using db.dropDatabase(); will drop all inputs in the
TaarifaAPI database , so it was recommended not to use this when you
have any input because you will have to re-create everything. There
might be an alternative but I don't know how to use mongodb, so I would
recommend just using this option when messing around with Taarifa and
getting used to it.