-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unit convertion. intro #55
Comments
We've got two tables inside the PHP files, so I need to create two separate arrays of JS objects. |
yes, you right |
later, when we'll convert it into working json files - we'll also create it via js code at groceristar-fetch |
What does this line mean ?
|
to be honest, i'm not quite remembered it... |
Our another developer, Vadim - added some functionality, that will help us to generate some json files on the fly. please take a look on new functions that we have in this repo. |
I've taken a look at the writeFile.js file. Now what 2 files need to be connected ? |
This task is about unit conversion.
And we have our 2 new files - related to unit conversion.
My goal to make it similar and with the ability to change the
logic/structure.
|
right now we have files:
1_ Systems: file, with a structure:
we'll generate these structure by code. 2_ Units file, with a structure
will be also generated on the fly. let's think what steps we'll have in order to complete this task |
So we’ll use the code that Vadim wrote to generate these files. |
yeah, but it looks like that code is not finished as I wanted. But yeah - the main logic will be similar. Yesterday he pushed some updates, maybe in few days he'll complete it totally. in mean time we can discuss with you first steps, that we can do |
I think i find some details about units: https://github.com/ChickenKyiv/awesome-food-measurements-information |
check this video: https://www.loom.com/share/0229a998342046a986b51952dbd8f146 |
I've simplified the files, What else needs to be done ? |
we need to connect them and generate a previous looking like file via
generate script.
… |
So the script is complete ? |
@wahaj-47 yes, but it has one bug, before you will run generator you need create a folder. How to use this: there is
in property name put your filename that should be created. Then create folder with in to run generator use
to know that your file is created you will see in console about success of create file another you will see error |
Alright got it. |
@wahaj-47 can you fix test measurementSystems.test.js - it's faile. you can see it in https://travis-ci.org/GroceriStar/sd/jobs/524059567 |
@vadim9999 What next ? |
I think we should close this issue. |
close |
I was thinking about our discussion, related to unit conversions...
I actually think that we can start this thing too if you're ready to do it. From my side I have a lot of data collected. I'm just lazy to do it at this moment
So if you up to this thing, we can start from a simple task.
I have a file, that was created by my partner. it's on PHP, but I'm sure you'll be able to crack it.
Our goal is to convert that code into JSON objects/arrays.
https://github.com/GroceriStar/sd-plain/blob/master/dirty/Measurements/data
@wahaj-47 tell me what do you think
The text was updated successfully, but these errors were encountered: