{"id":18017858,"url":"https://github.com/zac-garby/tode","last_synced_at":"2026-05-18T19:07:01.321Z","repository":{"id":116696292,"uuid":"126613766","full_name":"zac-garby/tode","owner":"zac-garby","description":"the online database of equations.","archived":false,"fork":false,"pushed_at":"2018-03-28T15:10:42.000Z","size":40,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T15:52:59.102Z","etag":null,"topics":["api","database","maths","website"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zac-garby.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-24T15:38:11.000Z","updated_at":"2018-03-28T15:10:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ae3721f-722e-4c1b-8500-4d05a902186a","html_url":"https://github.com/zac-garby/tode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zac-garby/tode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zac-garby%2Ftode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zac-garby%2Ftode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zac-garby%2Ftode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zac-garby%2Ftode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zac-garby","download_url":"https://codeload.github.com/zac-garby/tode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zac-garby%2Ftode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278328167,"owners_count":25968900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","database","maths","website"],"created_at":"2024-10-30T04:25:58.037Z","updated_at":"2025-10-04T14:58:21.003Z","avatar_url":"https://github.com/zac-garby.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tode\n\n_NOTE: Since tode isn't finished yet, some of this README is hypothetical as of yet._\n\ntode stands for \"The Online Database of Equations\". It's essentially a website where you can browse a list of equations, as well as adding your own to the database. It will be hosted on [tode.uk](http://tode.uk), but for now you'll have to host it yourself if you want to have a go with it.\n\n## Getting started\n\nI assume you have Go and Redis installed.\n\n```\ngo get -u github.com/gorilla/mux\ngo get -u github.com/go-redis/redis\ngit clone github.com/Zac-Garby/tode\ncd tode\nredis-server\n```\n\nThen, in another terminal (still in the `tode` directory):\n\n```\ngo install\ntode\n```\n\nUnless you encountered any errors, you should now have two servers running: a Redis server and a tode server. Open a browser and go to [localhost:7000](http://localhost:7000) to use the web frontend, or access the HTTP API by sending HTTP requests via curl:\n\n```\ncurl http://localhost:7000/api/all/users | python -m json.tool\n```\n\n### Using the scripts\n\nI've written some useful bash scripts for starting the servers and using the API. Instead of using up two terminal windows and manually starting the redis server and the tode server, you can alternatively execute `start`:\n\n```\n$ ./start\nlistening on http://localhost:7000\n```\n\nThen, in another terminal window, you can use `route` to test the API and automatically pretty-print it using Python's json.tool module.\n\n```\n$ ./route user/id/0\n{\n\t\"name\": ...\n\t...\n\t...\n}\n```\n\n### Config\n\nThe server can be configured using environment variables. These are the defaults:\n\n```\nPORT=7000\nREDIS=localhost:6379\nREDIS_PW=\"\"\nREDIS_DB=0\n```\n\nThey are set inside `./start`, too.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzac-garby%2Ftode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzac-garby%2Ftode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzac-garby%2Ftode/lists"}