A free and open-source web application to view, edit and collaborate on study resources.
- as fast as possible
- maintainable
- lightweight
- top-notch user experience
- client over server
- just works
- some of the worst javascript code you'll ever see
- yes, that is php communicating with javascript - I know it's painful
- if-else-switch-party over here
Over time I'll try and actually put effort into abstraction, but we have enough currently to launch a working deployment.
Because I hate high-quality maintainable code that uses the industry-standard MVC model which emphasises best coding practices, plus I'm hoping it uses less than 512 MB of RAM (thx heroku), oh and also I only have two weeks to get this running and I sort of want to finish my playthrough of Fire Emblem (the one with Roy in it).
- Primer CSS — MIT License
- Hover — MIT License
- DOMPurify — MPL-2.0 / Apache-2.0
- Cusdis — GPL-3.0 License
baokao/public/static/env.js
baokao/include/env.php
Create a API key at https://console.cloud.google.com/apis/credentials and then fill it in baokao/public/static/env.js
.
- Google Drive API key should be restricted in production with a HTTP restriction to your domain (https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions) and API restriction (Google Drive API)
- Keys exposed to the client should only have access to the free Google Drive API and be restricted by HTTP domain or IP address.
- Exposing API keys to the client is pretty poor security practice. Too bad! We're relying on the HTTP restrictions and the limited sensitivity of the scopes to not get hacked...
Make an account on https://cusdis.com/ and then fill it in baokao/include/env.php
.
- Do not use Cusdis to store secure information.
Replace the following things at baokao/include/head.php
- Panelbear script
- Meta properties
MIT License - see LICENSE for more info.
MIT huh? I wouldn't mind going there one day :)