Quote (spoofdaboss @ Jan 24 2017 11:58am)
ty men,
personal use.. i've been grabbing a little bit to learn at a time.
i understanding writing local or usb/media
so now im trying to grasp the next building block before doing it A) online, or B\) securely
Its not an or but an and. If you want to do anything online or remotely you want to design it securely from the start.
I would look into flask since you are using python and how to use its rest api. This may be a good start:
http://blog.luisrei.com/articles/flaskrest.htmlThe ideal situation is to assign an authenticated token to your client and then let the client use a post/get api to fetch the data.
This way only clients with an authenticated token can use the api and if a token is leaked you can revoke it. This also separates the user from the storage mechanism so they can't vandalize any data except their own (depending on design).
This also allows for use of a SQL database like mysql or sqlite where you can store data and fetch it in a logical way.
Say you only want to fetch a users shoe:
Code
select shoe from users where user = "user-token"
Or you want to sort all users by first name:
Code
select first name from users order by first name desc
Makes manipulating data much easier.