Open BenderV opened 9 years ago
@epiphone Just to clarify, the requirements in the Gist are not in the scope of your task, it it just to give you idea of the overall project. I recommend you start with the data import, super simple API and single page the uses that data. You can then move to additional pages and features. Remember, you don't have to rush to finish all requirements, just got at your pace. Just remember to post your progress here and push your code to Github regularly (even if it's in incomplete or not polished state).
Tsemppiä koodailuun, koitan olla slackissa niin voidaan jutella lisää: https://wiredcraft.slack.com/messages/aleksi-cait
I wrote the API and data importing methods today, moving on to the UI tomorrow. Haven't run to any bigger problems so far; the requirements are pretty clear, thanks!
I went with Flask and sqlite for the back-end. Don't know about the graphing library yet, have to do some research on that.
Alright, now I have a simple page for listing/filtering the companies:
..and a page for the selected company, with a graph for the emissions and the option to compare with other companies:
The colours etc. could use some polishing for sure, but most of the functionality is there, I think.
Reduced it down to a single page:
Is this anywhere near what you guys had in mind?
Also, as suggested, I tried using a logarithmic scale for the x axis:
Don't think it's massively helpful, though -- I would just stick with the linear one.
Yep. Just push it to a prod/staging server and we're good to go.
@JuhaS @BenderV Can you evaluate @epiphone 's code?
staging: https://wiredcraft-cait-proto.herokuapp.com/
I reviewed the code, and it's good. It's well organized (one bonus point for the blueprints) & robust (load google chart before rendering, csrf, WindowResizeMixin, ...).
@JuhaS didn't look at it yet, but he told me that he would have give one bonus point if there was finnish variable name ^^
~This issue is intented for discussion for the requirements for the system being built.)~
What is it?
A simple prototype for the CAIT Business project. The goal is too quickly draft a working prototype of the project to show and test the feasibility and difficulty (or lack-of ^^) of the project.
It's first intended for us, to see the project feasibility, then to WRI, to show them an already working prototype.
About the project
The presentation and the requirements of the project are here
How will it be built?
You are free to use any framework/libraries that you think are the best for the job (keep it simple!), as long as the code is readable and maintenable. However, the front-end framework should be in React.
We suggest you to start in this order.
Where is the data?
We have created a fake dataset (simplified) for this exercise. https://gist.github.com/BenderV/3ea0212a9c4527ae14b1
Comments
Don't spend too much time on the design or the general aspect of the page. We are more interested in your communication skills and in your ability to quickly create a working application.
Feel free to ask us any questions or to ask for help if you need! Good luck!