Skip to content

agauniyal/ide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IDE

Learnyoucpp online ide - https://agauniyal.github.io/ide/

TODO

  • Add more units/chapters
  • Add hints for difficult lessons(involves idea for their UI as well)
  • Add setting for editor font size
  • Add language keywords to monaco editor(provide better completion support)
  • Add compile/execute shortcut to monaco editor itself
  • Fix maximized window transparent tabbar
  • Improve compiler warnings/errors in output window

How to develop

  • clone the repo locally - git clone https://github.com/agauniyal/ide.git
  • change directories - cd ide
  • install all dependencies - yarn
  • make changes inside src directory and run yarn build
  • (Optional) Format c++ files with clang-format :)
  • Open webserver on docs/ directory and view in browser

How to contribute lessons

  • Follow steps from How to develop
  • Make changes to src/units/ directory only

The structure of src/units/ directory is as follows -

.
└── 1-Introduction
    ├── chapter-1
    │   ├── main.cpp
    │   └── readme.md
    ...
    ├── chapter-5
    │   ├── helper.hpp
    │   ├── main.cpp
    │   ├── readme.md
    │   └── result.txt
    ...
    2-TypesAndVariables
    ...
  • Each unit must have its own top-level directory inside src/units/ named as {number}-{name}.
  • Every chapter must be contained inside its parent unit as a directory and are to be named as `chapter-{number}.
  • At minimum, each chapter must contain a main.cpp file and a readme.md file.
  • A result.txt file, if present, is trimmed and checked for successfull program output to pass the chapters
  • Any other .cpp or .hpp files are opened up in different tabs.
  • All other files are ignored