{"id":18039439,"url":"https://github.com/sumanthratna/website","last_synced_at":"2026-05-04T05:41:52.682Z","repository":{"id":38100731,"uuid":"197975319","full_name":"sumanthratna/website","owner":"sumanthratna","description":"My fast and beautiful personal website.","archived":false,"fork":false,"pushed_at":"2023-01-16T10:03:27.000Z","size":5701,"stargazers_count":2,"open_issues_count":45,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T09:28:32.017Z","etag":null,"topics":["bootstrap4","cms","php","smarty"],"latest_commit_sha":null,"homepage":"","language":"Smarty","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/sumanthratna.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}},"created_at":"2019-07-20T19:54:14.000Z","updated_at":"2023-03-07T15:45:54.000Z","dependencies_parsed_at":"2023-02-10T02:31:29.062Z","dependency_job_id":null,"html_url":"https://github.com/sumanthratna/website","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanthratna%2Fwebsite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanthratna%2Fwebsite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanthratna%2Fwebsite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumanthratna%2Fwebsite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumanthratna","download_url":"https://codeload.github.com/sumanthratna/website/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247271527,"owners_count":20911587,"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","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":["bootstrap4","cms","php","smarty"],"created_at":"2024-10-30T14:09:26.892Z","updated_at":"2026-05-04T05:41:47.645Z","avatar_url":"https://github.com/sumanthratna.png","language":"Smarty","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @sumanthratna's Website\n[![Code Quality Score](https://www.code-inspector.com/project/7968/score/svg)](https://frontend.code-inspector.com/public/project/7968/website/dashboard)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/af03513b3ff944a0b1bba6ed91303724)](https://www.codacy.com?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=sumanthratna/website\u0026amp;utm_campaign=Badge_Grade)\n\n## Setting up the files\n\n    .\n    ├── private\n    │   ├── keys.ini\n    │   ├── php.error.log\n    │   └── smarty\n    │       ├── cache\n    │       │   └── ...\n    │       ├── configs\n    │       │   └── \u003cEMPTY\u003e\n    │       └── templates_c\n    │           └── ...\n    └── public\n        └── \u003cTHIS REPOSITORY\u003e\n\nNote: the `public` is this repository itself—it doesn't exactly contain this repository. Here's a script to set everything up (run this in an empty folder):\n\n```sh\nmkdir private\ntouch private/keys.ini\ngit clone git@github.com:sumanthratna/website.git public\ncd public\ncomposer install\n./compile all\n```\n\n## Creating `keys.ini`\n\nHere's what `keys.ini` should look like:\n\n```ini\nneverbounce_key=\u003cNEVERBOUNCE API KEY\u003e\nsendgrid_key=\u003cSENDGRID API KEY\u003e\nsecret=\u003cSITE SECRET\u003e\n\n[recaptcha]\nsecret=\u003cRECAPTCHA SECRET\u003e\nsite_key=\u003cRECAPTCHA SITE KEY\u003e\n\n[database]\nname='site_2022sratna'\nhost='mysql1.csl.tjhsst.edu'\nport='3306'\nusername=\u003cDATABASE USERNAME\u003e\npassword=\u003cDATABASE PASSWORD\u003e\n```\n\n## Preparing the MySQL Database\n\nNote: there must be at least one user with the username `\"admin\"` in order for the admin panel to work.\n\n```sql\n-- Create the table:\nCREATE TABLE users(id INT NOT NULL AUTO_INCREMENT, username VARCHAR(255) NOT NULL, password VARCHAR(255) NOT NULL, PRIMARY KEY(id))\n\n-- Create a login account:\nINSERT INTO users(username, password) VALUES(\"admin\", SHA2(\"MySecurePassword!\", 512))\n\n-- Show login info (username and SHA-512 of password) of a certain user:\nSELECT username,password FROM users WHERE username=\"admin\"\n\n-- Show login info (username and SHA-512 of password) of all login accounts:\nSELECT * FROM users\n\n-- Remove a certain user's login account:\nDELETE FROM users WHERE username=\"admin\"\n\n-- Remove the table:\nDROP TABLE users\n```\n\n## Configuring Nginx\n\nOn Director, this should be the only change made:\n\n```nginx\nserver {\n    ...\n    location / {\n        ...\n        try_files $uri $uri/ /index.php?$args;\n    }\n    ...\n}\n```\n\nThis allows routing from [`index.php`](./index.php).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumanthratna%2Fwebsite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumanthratna%2Fwebsite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumanthratna%2Fwebsite/lists"}