r/programminghelp • u/Quick-Option4655 • 14d ago
HTML/CSS need a solution to an impossible problem
essentially, im tryna publish a public css website on a HEAVILY restricted school network
I'm developing a website which is essentially a student focused grade calculator that I've built using Python, Gradio, HTML, CSS, and JavaScript. ik there are other grade calcs out there, but this one is more specific to my district and solves the need of people constantly asking me to calculate their grades manually. The application itself is practically built, but I'm having a really difficult time figuring out how to actually publish it so other students can use it.
My requirements and limitations:
Students need to access it through one normal URL in their browser
No downloads, installations, or student accounts
AI website generators or a template builders are blocked
Student grade data needs to stay entirely in their browsers and not be sent to a server
It needs to be accessible on school computers, which have a VERYYYYY restrictive network filter
No paid hosting, adult involvement, administrator permissions, or requests to school IT
Ideally, I'd like a professional-looking URL that doesn't advertise that the site was made through an educational coding platform (ex. i know code .org is available and practically my only option but the name itself ruins the credibility. im ok with using if i HAVE to but i would rlly prefer not to)
I've already looked into A LOTTT of other options, including Google Sites, Google Apps Script, Firebase, Blogger, GitHub, and several other hosting platforms. either ALLLLL are blocked on school computers, or they don't actually support what I need. Google Colab works for development but im unable to publish past that
Does anyone have ideas for unconventional hosting or publishing methods that I might be overloking?
2
u/Fadamaka 14d ago
Oracle Cloud gives you 2 micro vms for free. You can host it there. You can buy .com domains from around $20 a year. You can set that up to point to your micro vm. The everything stays in their browser is entirely up to you.
1
u/GrainWeevil 14d ago
I think PythonAnywhere offers a free tier, though it's probably quite limited. It also includes a 'username.pythonanywhere.com' URL.
There's some more free Python hosting options listed at https://wiki.python.org/python/archive/FreeHosts.html but I'm not sure how up to date the page is.
Whatever domain you end up using, if it's blocked by your school, you'll likely have to ask the network administrator to unblock it if you want people to use it.
Also, I'm not sure how it'd be possible to keep grade data entirely within the browser, if you're doing the calculations on a Python backend. If that's a hard requirement, maybe a Javascript program that runs in the browser would be a better option? You'd just need to host a static page somewhere, and it'd likely be easier to find free options for this than finding free Python hosting.
1
u/Educational_Virus672 13d ago
"Student grade data needs to stay entirely in their browsers and not be sent to a server"
ok if its static website it is gonna be easy and if can you host server if yes try "freedomain.one" else if you want to them to host them and github, itch and othrs are blocked theres nothing i can do abt that you have to chekc them one by one
2
u/jshine13371 13d ago
This is the requirement that didn't make sense to me. How will a static website with all student grade data embedded in it be secure without the students using an account to authenticate even?
1
u/Real-Abrocoma-2823 13d ago
Encrypt data in js variable and decrypt on opening? Would need manual updating.
1
u/jshine13371 13d ago
And every student can see each other's grades?
1
u/Educational_Virus672 13d ago
i feel like OP mix afew statements here and there, this doesnt feel like a professional beginner project thy didnt supply him a server yet requested one they also asked for a domain and no professional does that they usually give 2nd level domain themselves domains are not free
1
u/Real-Abrocoma-2823 13d ago
You can always make students input their grades in one html/js static site to get separately encrypted grades.
But then if they have to tell/input their grades, isn't it better to just use any other website, or use school's gradebook app which probably already calculates everything, there are often FOSS gradebook apps for phones.
1
u/jshine13371 12d ago
If the students are inputting their own grades, then there's no point in the website. The data isn't going anywhere as OP said: "Student grade data needs to stay entirely in their browsers and not be sent to a server". I believe the use case is OP is sharing the grade data from the teachers to the students via this website as a portal.
1
u/Pyromancer777 13d ago
You need district permission to get your domain through their whitelist.
That being said, your use-case will dictate how you proceed from here. Is this a personal project, an MVP that you want to pitch, or something in-between?
Students' grades are highly protected personal information, especially since grade-school and high-school students are minors with extra protective rights to their data, so unless you are also providing the students instructions on how they can format their information to be handled client-side, you are likely hard-blocked from proceeding until you communicate with a school board and let them run a security evaluation on your tool.
There's no easier way to be sued into oblivion than by accidentally leaking student information to a 3rd party
1
u/spatulari 13d ago
Make the website static, host it on github, and have (iirc) youruser.github.io/gradcalc . And i am pretty sure that github.io is trusted by the network filters. Plus, you pay nothing
1
u/Real-Abrocoma-2823 13d ago
Use cloudflare (or github or anything other, but cloudflare is the most free) pages.
1
u/codeguru42 12d ago
You mentioned you looked at GitHub. Are you blocked from pushing your code? If not can you use GitHub Pages?
1
1
u/xervir-445 9d ago
This sounds like a job for a cloudflare tunnel. Same tool you'd use to publish a website from inside a cgnat
1
u/paralepsy 7d ago
since you mentioned github was blocked, codeberg is your secret tool here. its like github, but better, and probably unblocked by your school. anyway, you create an account, and then a repo called 'pages'. for more info, see codeberg.page please. inside that repo, you can put any html, css, and (client-side!) js files you want, and itll be hosted by codeberg. note, your python probably wont work tho. but since its a grade calculator, a plain html+css+js site should work fine without problems, unless its super complicated and practically impossible to represent in js. also try not to make the repo 1gb big, codeberg is a relatively small non profit, so 750mb is the limit. use cdn for js dependencies
0
u/jcastroarnaud 13d ago
Put the application and all dependencies in a pen drive, then copy it around. Make sure that the application can run from the pen drive, no installation required. Also, torrents.
6
u/Useful-Flow-8737 14d ago
So you want a domain but don't wanna pay for a domain?