Skip to content

Tutorials for frontend stuff #1

@giangd

Description

@giangd

What potential topics should we include?

JS frontend frameworks/libraries

React

  • React with otree and django
    • Setup
      • (we still need to find a less hacky way to integrate react with django and otree)
    • Guidelines for class vs functional components?
    • Maybe static type checking? Probably shouldn't use typescript since it's a bit too much, maybe something like flow

Not using react

  • If not using react, how to structure plain js in a readable way using classes
    • Koorous, this was the js class code with the static and private/public fields stuff I showed you in my js code
    • I used this tutorial for flow_market
  • Should we allow for jquery?
    • I feel like we should advise against jquery since it is becoming outdated and vanilla js can do most of the things jquery can do. We don't want new programmers to have to learn jquery just because someone used it in the past.

CSS frameworks

  • Bootstrap
    • Link to some tutorials

Using JS utility libraries

  • Tutorial on how to add JS utility libraries
    • CDN
    • Modules? I'm not exactly sure how to do this myself...

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions