“Your app can be found at https://(yourapp).herokuapp.com” is the right one.
For example:
https://asteroiddb.herokuapp.com
You can also check your AsteroidDB instance by going to URL in your browser if it is working perfectly.
“Your app can be found at https://(yourapp).herokuapp.com” is the right one.
For example:
https://asteroiddb.herokuapp.com
You can also check your AsteroidDB instance by going to URL in your browser if it is working perfectly.
Wonderful! It’s already working!
So, when I set a password, do I use the obfuscate text block to prevent someone from getting it?
Is there any other method? Sorry if these questions are too basic, but I never used any online storage component before.
Thanks for trying it!
No of course! When we talk about the learning, no any question is too basic to me.
You can use Obfuscate block, but as in the block description it is low security level protection. Maybe you can pull the password from another place, encrypt the password etc.
… or to even store other file types as a string:
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!searchin/mitappinventortest/Juan$20Base64|sort:date/mitappinventortest/L6B-8ea9gw4/PleqH20_AQAJ
Is this coming soon ?
Thank you very much!
I current don’t have a tutorial for that, however as AsteroidDB is written in Python, it should available in most cloud platforms which supports installing Python, Postgres, Flask and other packages which can be found in this file.
But I will write a tutorial anyway soon.
Storage size?
Storage size is based on which platform you install AsteroidDB on.
Heroku’s free plan offers 10.000 rows. If you select basic plan it gives 10.000.000 rows for 9$/monthly. I think it is enough for basic applications. However if you have own Python server, you can install AsteroidDB on it.
According to this you get 10.000.000 rows for 9$/month. Is this true or am I looking at the wrong place?
Sorry I said it wrong, I edited my post. I think I have problems about English numbers
Well, I think it would be better if they displayed the whole number with all the 000. It would be more clear at first glance. Nonetheless, depending on the use, I think 9$/month for 10.000.000 rows is a very decent price.
Another newbie question here:
After I retrieve all the data with the GetData block, how do I address each individual tag inside the result text?
GetData blocks returns an list of pairs which first item is tag and second item its value.
From AsteroidDB Docs:
Example:
((fruit Apple) (message Hi) (coins 1000))
Use ParseResult
block to convert JSONArray to App Inventor compatible list by connecting result parameter which coming from OnSuccess event to the result socket.
To get tag of the pairs, select first item. To get the value of the pairs, select second item.
However if you only want to get all tags instead of getting their values too, you can use GetAll / Get tags block.
Excellent, thanks for the detailed explanations!
I’ve been checking Heroku but I can’t find a page to browse the content of my database, is that possible? Kinda like phpMyAdmin?
Heroku doesn’t offer seeing your database records direclty from your dashboard. I don’t know why. There are some external services which allows to see your data. For example you can use Heroku Data Explorer for a while.
I said “a while” because I’m working on a web editor already. I just need add a login method to the connect the database, and it will be done.
This post was flagged by the community and is temporarily hidden.
Thank you very much!