Share your repls and programming experiences

← Back to all posts
Repl.it Classrooms
h
CodingCactus (4333)

Hi, so I'm sure many of you know that repl.it classrooms was shut down on 31st Jan and has now been fully replaced by teams for education, which is a really good product.

.... however it costs a lot of money to use

This means that my school cannot use repl.it anymore to teach programming which for me is very sad, because repl.it is the only reason I know how to code.

So, I really wanted my school to keep using repl.it, so I have worked for a month or two on this - a replacement for the dead repl.it classrooms.

Now this is by no means as good as teams for education, but what it is, is a way for students to be set assignments and taught how to code!

How to do stuff

I went pretty in depth in the github readme so this will just be a basic guide.

  • You need repl.it teacher role to do teacher stuff on this.
  • make classrooms with the button on the landing page
  • Make assignments with the button on the assignments page
  • When opening the assignment for the first time, make a repl and enter it's url
  • that repl gets embeded
  • click submit when you're done with the assignment
  • teachers can the send feedback when it has been submitted

Roadmap

  • repl auth log in
  • landing page
    • list all classes
    • create new class (teachers only)
  • edit classroom
    • add students
      • add indivdually
      • create invite link
      • create code
    • add teachers
      • add indivdually
      • create invite link
      • create code
    • edit name, description, image
  • join class with code
  • assignments
    • create assignments
    • view list of assignments
    • embed repls in assignments
    • submit assignments
    • teacher stuff like marking and feedback
  • button to get to teacher page
  • buttons to go back to page before
  • make assignment button on teachers page as well as main classroom page
  • make student overview section in teachers page better
  • remove teachers and students from classrooms
  • edit assignments
  • delete classrooms and assignments
  • assignment modal answer
  • classroom templates

If you want a random code just to see what it's like, you can use K8AE3351G6

Hopefully you like this because I have spent a lot of time on it and if you do, please make sure to star the repo

Thanks!

Comments
hotnewtop
PSIPowerhouse (7)

im getting 500 internal errors again @CodingCactus

CodingCactus (4333)

@Devgod23 thank you for letting me know, I am aware of what is causing that and should be fixed very shortly

dbates (10)

https://classrooms.codingcactus.repl.co/invite/J2ZONLL20WS425D

code: O5K58ZOL5P

reply for removal (request to unenroll is still not here)

Makashiyt (0)

Hello! I made a python classroom where I will make fun and easy assignments for you guys to do every day! https://classrooms.codingcactus.repl.co/invite/DAC46T20713XC22

LingWu1 (95)

I dont understant repl classroom since I am quite new to repl. I have been here for like 4-5 months.

[deleted]

dis is absolute poggers XD

lukel_lv (23)

will you force it to update for me?

PSIPowerhouse (7)

How do we check someone's repl if repl.it refuses to connect

PSIPowerhouse (7)

2 things:
1. join my class
Teachers: https://classrooms.codingcactus.repl.co/invite/F36I7K4I937S0HU
Students: https://classrooms.codingcactus.repl.co/invite/F36I7K4I937S0HU

and 2: I've noticed that whenever I put a class photo in, the class doesnt can't made

CodingCactus (4333)

@Devgod23 hi, there's an issue with uploading .jpg files at the moment, i'm looking into it. For the moment you can just use .png and .gif

PSIPowerhouse (7)

k and you know I've known you for a while on repl.it. on my old account

PSIPowerhouse (7)

You know I like how this is like google classroom and repl.it teams for education

PSIPowerhouse (7)

Sorry for constantly talking, but I THINK I FOUND THE PROBLEM. In the static folder, you have a makeclass.js file, but no remove_class.js file. The only remove.js file you have is remove_people.js. This might be the problem

CodingCactus (4333)

@Devgod23 erm no that is not the problem

CodingCactus (4333)

@Devgod23 if confused what's happening, because deleting classrooms works perfectly for me, do you recon you could video what you are doing so that i could take a closer look. Also maybe try resetting your cache incase you do not have the latest js.

PSIPowerhouse (7)

Then how does the remove class button work if there is no removeclass.js

PSIPowerhouse (7)

you'll Have to update the code and save it then delete the update then save again cause it will get me straight to 500 internal error
@CodingCactus

PSIPowerhouse (7)

and now line 993 has an invalid syntax of
if

PSIPowerhouse (7)

Also @CodingCactus Why do i keep getting 500 Internal Server Errors?

CodingCactus (4333)

@Devgod23 i don't know, what are you doing

PSIPowerhouse (7)

@CodingCactus I Login with replit, and the next thing i know, IT GOES STRAIGHT TO 500 INTERNAL ERROR. AND WHEN I PRESS RUN ON THE POST PAGE I GET THESE TRACEBACK ERRORS: Traceback (most recent call last):
File "main.py", line 2, in <module>
import util
File "/home/runner/U2ISRaLWHc2/util.py", line 3, in <module>
db = easypydb.DB("db", os.getenv("dbToken"))
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/easypydb/db.py", line 9, in init
self.load()
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/easypydb/db.py", line 15, in load
self.data=self.s1.get(self.name)
File "/opt/virtualenvs/python3/lib/python3.8/site-packages/s1db/init.py", line 28, in get
response = requests.get(self.base_url + '/db/' + quote(key), headers={'Authorization': 'Bearer ' + self.token, 'Content-Type': 'text/plain;charset=UTF-8'})
TypeError: can only concatenate str (not "NoneType") to str
So i am assuming these are the problems even tho it worked like 30 minutes ago

CodingCactus (4333)

@Devgod23 well yeah you obviously can't run my repl because it uses a .env

CodingCactus (4333)

@Devgod23 have you recently made/edited/deleted a classroom

PSIPowerhouse (7)

So i assume its these errors tho it worked 30 minutes ago

CodingCactus (4333)

@Devgod23 i can fix your error, but I'll take a look to try and see what caused it first

PSIPowerhouse (7)

Am i NOT allowed to delete a class cause i deleted a class and got the error again

PSIPowerhouse (7)

BTW @CodingCactus I sent you a team for Repl If your interested in joining

PSIPowerhouse (7)

how do you make a classroom'

CodingCactus (4333)

@Devgod23 you must have the teacher role on repl.it (https://repl.it/account) and then you will be able to.

Lockk (8)

can u pls post assignments :D

dbates (10)

so you should do the assignments(reply if you want to be kicked) https://classrooms.codingcactus.repl.co/invite/5ZKL640R1KLQ9L1

Code:2YJ11S206R

CodingCactus (4333)

@NehalRam I am not seeing any errors. Are you trying to run it yourself? If so, it will error because you don not have access to the .env. Just go to https://classrooms.codingcactus.repl.co.

NehalRam (17)

@CodingCactus its showing failed to authenticate

CodingCactus (4333)

@NehalRam ah yes, that's a problem with replauth, nothing i can really do about that except ask @turbio to look into it

NehalRam (17)

@CodingCactus I didn't expect a reply this fast
thank you for responding

GEISTCODER (22)

Wow man. This is amazing! I have no idea what repl.it classrooms are (probably because I joined this community after they were gone), but I love it! Small question though: How do the teachers do all that teacher stuff? I can not see a separate teacher page or anything

CodingCactus (4333)

@GEISTCODER you need to teacher role on repl.it (repl.it/account) and then when you make a classroom it should all become apparent

dbates (10)

add request unenroll from classrooms for kids?

dbates (10)

@CodingCactus remove classrooms button?

CodingCactus (4333)

@dbates there is a button to delete the classroom. It is on the teachers page. Only the classroom owner can see it

dbates (10)

@CodingCactus yes but not for the kids can you add one for them

ThisUserTaken (246)

@dbates wait... why would kids be able to delete the classroom?

CodingCactus (4333)

@dbates yes I'm very confused why the students would be able to delete their classrooms

SpicyTofu (1)

@CodingCactus I think they mean unenroll from a classroom

CodingCactus (4333)

@SpicyTofu @dbates teachers can remove students from the classroom

Saibot84 (49)

@CodingCactus AWESOME work!

And I agree that an Unenroll button would be great! It's easy to click an invite link ... but then what if you don't like that classroom or don't want to be in it anymore?

It would also be nice to have like a spotlight page showing the top classrooms. Maybe using a simple upvote system just like Repl Talk.

CodingCactus (4333)

@Saibot84 the problem is, a teacher wouldn't want students to simply unenroll from their classroom. Maybe it could be an option that the teacher sets whether it is possible for students to unenroll?

Saibot84 (49)

@CodingCactus Ah! Yes, in a real-world classroom setting, I see what you mean.

Maybe a "request to unenroll" button might be more appropriate in this case. Or, depending on your point of view, maybe only allow teacher-roles to unenroll themselves from classrooms they didn't create. Anyway, it's just an idea. These new Repl.it Classrooms are AWESOME!

dbates (10)

@Saibot84 this is exactly what I mean

dbates (10)

@dbates a request to unenroll is exactly what I mean

HummingCosmo (1)

The thing doesn't work for me. I authorize it and it just does nothing after I authorize it.

CodingCactus (4333)

@HummingCosmo that is interesting, are you using safari or something?

HummingCosmo (1)

@CodingCactus No, I'm using chrome. For some reason, it always does that on projects that tell me to sign in with repl.it.

CodingCactus (4333)

@HummingCosmo well I'm sorry but I can't really help you with that : (

NeptuneYo (0)

ITS GREAT!!!!!!! I LOVE IT!

bennyrobert (45)

This is very impressive! Do you not think repl.it might not like you making a free version of their product, which they don't get paid for?

CodingCactus (4333)

@bennyrobert the ceo seems to like it, so it should be alright 🤞

bennyrobert (45)

You know the CEO? Well, that'll certainly help. @CodingCactus

doineednumbers (26)

@bennyrobert It's a small start up, and the CEO @amasad is very active. They replied above.

xmasboy (4)

One question... It says my repl url ain't valid (test ) @CodingCactus

CodingCactus (4333)

@xmasboy what repl url are you trying?

CodingCactus (4333)

@xmasboy that is an invalid repl url

CodingCactus (4333)

@xmasboy repl urls are https://repl.it/@username/replname