by Jithin KS (@JithinKS97)
For Google Summer of Code 2018, I worked on developing a webapp (Dynamic Learning) for STEM subject teachers with the help of my mentor Saber Khan.
Dynamic Learning is meant to be an online platform where teachers and programmers collaborate to create and share STEM lessons which make use of interactive visualisations created in p5.js. The main objective in GSoC 2018 was to lay down a basic structure of the app which will act as a foundation for future developments and will provide an idea about the app to the teacher community and future contributors.
The three core objectives of the web app are-
- Teachers should be able to create, present, save and share lessons which make use of interactive visualisations.
- Teachers should be able to collaborate with programmers to produce new visualisations.
- Students should be able to view the video lessons prepared by teachers and should be able to use the simulations the same time they watch it.
https://github.com/JithinKS97/dynamic-learning-app
- Install Meteor.js - https://www.meteor.com/
- Install git
- Clone the dynamic-learning-app repository
- Install the node dependencies by executing the command
meteor npm install --save
from the root directory - Start the app with the command
meteor
and the app will start running in localhost:3000 (By default)
The webapp is build on top of full stack Javascript framework Meteor.js along with React.js. Meteor.js comes with inbuilt Mongo DB database which is used in the app. Semantic UI React is used for obtaining styled ui components used throughout for making the ui of the app.
Below are the main React components of the app and much of the work in GSoC 2018 was focused on the development of these React components. These main React page components can be found in 'imports/ui/pages'.
The routes of each of the pages can be found in the 'clients/routes' directory. Detailed documentation for each of the components are provided in the components' js files.
This is the area where teachers create the lessonplans. It is basically a drawing app on which simulations can be embedded and annotations can be made. Each lessonplan consists of a sequence of slides which is implemented as an array. Each element in the array consists of annotations of string type and an array of simulations.
Each simulation is an iframe which is obtained from the online p5 text editor export feature.
The login and sign up features are made by making use of the inbuilt authentication tools in Meteor.
React Sortable tree component (https://github.com/frontend-collective/react-sortable-tree) is used for building the interface for the organization of lessonplans, lessons and the uploaded simulations.
For each lessonplan, a request forum can be created by the teacher where a request for a new simulation can be made. These requests are visible to all the other users of the app and anyone logged in can participate in the discussion for the development of a new simulation.
The users can share lessonplans, lessons and the simulations with the other users if they want. I've used the meteor easy search component for implementing the search (https://github.com/matteodem/meteor-easy-search)
This is the component where we can create lessons. Each lesson consists of a series of slides and on each slide there will be a video and the associated simulations. When the creator of the lesson views the component, he/she will have options to edit the lesson (Add more slides, add video, add simulations) and for others, they can only view the lesson.
Users who are not logged in visiting the app will be able to view all the lessons, lessonplans and request forums that have been created and shared with public so that they get an idea about the app.
Simulations are added to the app by making use of the iframe export feature of the online p5 text editor. One of the challenges that I faced was the implementation of the communication between the webapp and the iframe. Cassie Tarakajian helped me with this. She suggested me to use MessageChannel API and it worked. Another functionality I wanted to add was the ability to save the state of the simulations. This can be achieved by alloting a Javascript object for each of the simulation in the database. The Javascript object can be saved and loaded using MessageChannel.
Above are the main React Components of the app and you can find the other React Components in the'imports/ui/components' folder.
I've provided necessary documentations in the components' js files in all the areas where I felt like clarifications are necessary.
-
In GSoC 2018, my main target was to develop the overall basic structure of the application on top of which further development can be done. I haven't given much emphasis on the design aspects and didn't go much into the styling (The Components of Semantic UI React comes up with the essential styles that are needed). The app needs a general styling template.
-
Unit testing - Apart from some server side tests, no tests have been written. Adequate test cases for the server side and client side code should be written, so that the future contributors can add features without breaking the existing code.
-
Enhancing the discussion forum- The forums area can be enhanced by providing more features like providing Avatars for each users and the ability to reply to the comments, voting for the comments etc.
-
Adding Comments forum for the lessons.
-
Profile page for the users and notifications.
-
Login and Signup using Github, Google, email verification, password recovery.
-
Smoothening of the canvas strokes- At present, there are no smoothening algorithms for the strokes in the canvas due to which they appear to be a little jagged.
-
Making the webapp responsive.
For feature enhancements, bug reports and contributions, email me to [email protected]
I'm extremely thankful to Processing Foundation for having the faith in me and giving me an opportunity to start the project. There have been several situations where I have been stuck. I express my gratitude to my mentor Saber Khan, other members of Proessing Foundation Cassie Tarakajian, Lauren McCarthy, Daniel Shiffman, Casey Reas for getting back to me and providing me with intelligent advices and suggestions when I contacted them.
I've started this project and doing it with my friend Anupam Asok. I'm so grateful to him for being with me in the development of this project.
I'm so grateful to Andrew Mead and his course in udemy Full Stack Web Development using Meteor https://www.udemy.com/meteor-react/ for it has helped me greatly and Andrew has responded to each and every queries of mine.