In India, more than 95% of schools don't allow smartphones in class. Being a Computer Science teacher becomes very difficult as it is nearly impossible to check the handwritten code of each student line by line. Also talking in India, in most schools, the students don't have the privilege to have one computer each for them so that they can run their code on their own. So it becomes a nightmare for the teacher as they might have to manually type each code of each student and run it or take the risk of missing out on bugs. So we came up with Playground to make this job easier. Another reason for creating Playground was that once we entered college we understood the importance of coding. Coding not only helps you in a Software job but also helps increase logical reasoning and problem-solving ability. But many students don't have the chance of coding till they reach college. Why? Because there are so many students in India who can not afford a laptop or computer. So we decided to build a progressive web app because in today's world almost everyone uses a phone. Now they can start coding early and learn from online teachers.
In addition to that, we conducted a survey among our teachers where we found that teachers give more than 40% of their time to creating questions for various class tests, assignments, and exams. So this teacher's day, we wanted to help them out. For this, we came up with a crowdsourcing question bank idea. Anyone across the world can now help teachers make questions. By everyone, for teachers!❤
What it does
There are two subsystems of the Playground:
Evaluation of answer sheets of the exams conducted traditionally is a tedious and critical task. A lot of time and energy is invested by the teachers to check every single line of code, look for bugs and find the corresponding output. So, with Playground, you can simply upload a picture of a student's handwritten code and we will handle the rest. Using Google's Vision API, we scan the image and retrieve the text and give it back to you in a code editor. But unlike teachers, machines are not always right, so if some minor flaws are there you can edit them in the code editor, which will then run the code and give you the output. So instead of going through the entire code, use Playground to do it in less than a min.
Teachers have to work hard every day. Starting from explaining the concepts at a pace all students understand, to giving proper assignments, to clear all the doubts. So we thought let us make another important job for our teachers super easy. With Playground, you can also easily create question papers and assignments for your students. This is done by crowdsourcing. Students and teachers across the world can add their favorite questions through a form and then you'll get a variety of coding questions which are pre-approved by us. So just select some of the random questions from our page and you're done with the assignment! It's that simple!
How we built it
We used Next.js in the frontend and Node.js in the backend with MongoDB as our database. Next, we used the Google Vision API for scanning the image and retrieving the handwritten text. The handwritten text was displayed in a code editor with full syntax highlighting and available for currently two languages, c++, and python. When you click submit, we generated a new code file for the corresponding language and displayed its output on the screen. For the second section of Playground, we created a form that adds data to the database. Then we retrieve the data through Axios and display the questions that are approved. We created a special route with a passcode for admins, where they can manually approve the questions in the database.
Challenges we ran into
We faced numerous challenges throughout the journey. Firstly, we had to look for a good OCR model. We checked so many GitHub repositories and packages but we couldn't find one that had very high efficiency. So we finally decided to go with the Google Vision API in Google Cloud. But in Google Cloud, for getting the API key, we needed credit card details and since none of us had one, we had to borrow it from a friend which led us to our next challenge. We saw that while development, we had already used up so many requests, and if we made the site live, the number of requests will increase because of which our friend might have to pay to Google Cloud. Since we wanted to remain in the free tier, we decided not to host the web application. Other than that we tried creating our very own compiler for the first time, which was initially full of bugs and it took us a lot of time to fix them.
Accomplishments that we're proud of
The biggest accomplishment for us was that we learned so many new things in just 2 days. We implemented OCR, TypeScript, Axios, and API calls. We were able to overcome all the challenges and were able to create a completely functional prototype the way we had envisioned. Even though one of our teammates fell sick and wasn't able to contribute, we didn't lose hope and stayed up all night. It was tiring, but fun as well. I am most proud of the fact that this product will be able to help many teachers across the globe.
What we learned
What's next for Playground