{"id":15145095,"url":"https://github.com/alifeee/simple-calendar","last_synced_at":"2025-10-23T22:32:11.634Z","repository":{"id":219600383,"uuid":"749439074","full_name":"alifeee/simple-calendar","owner":"alifeee","description":"Extremely simple calendar app","archived":false,"fork":false,"pushed_at":"2024-11-17T16:24:53.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T21:35:10.534Z","etag":null,"topics":["eleventy","handlebars","yaml"],"latest_commit_sha":null,"homepage":"","language":"Handlebars","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alifeee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-01-28T15:38:37.000Z","updated_at":"2024-11-17T16:24:56.000Z","dependencies_parsed_at":"2024-09-16T05:06:11.233Z","dependency_job_id":"81095dc5-ef17-47d7-a308-cc9466786955","html_url":"https://github.com/alifeee/simple-calendar","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":"0.36585365853658536","last_synced_commit":"27c8b0f11604e28c0445263e3f2d76116b41ca40"},"previous_names":["alifeee/simple-calendar"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alifeee%2Fsimple-calendar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alifeee%2Fsimple-calendar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alifeee%2Fsimple-calendar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alifeee%2Fsimple-calendar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alifeee","download_url":"https://codeload.github.com/alifeee/simple-calendar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237890777,"owners_count":19382562,"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":["eleventy","handlebars","yaml"],"created_at":"2024-09-26T11:08:50.758Z","updated_at":"2025-10-23T22:32:01.623Z","avatar_url":"https://github.com/alifeee.png","language":"Handlebars","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calendar\n\nExtremely simple calendar app\n\n![Screenshot of page](images/calendar.png)\n\n## To use\n\n### Edit calendar\n\nEdit the `yaml` calendar file. For example, to set the status for the 5 days beginning `2024-01-29`...\n\n```yaml\n2024-01-29:\n- monday info\n- ¯\\_(ツ)_/¯\n- tuesday\n-\n- friday\n\n2024-02-15: doing this on this specific day\n```\n\n### Rebuild site\n\n#### With `npm`\n\n```bash\nnpm run build\n```\n\n#### With docker\n\n(for first-time use switch `run build` for `install`)\n\n```bash\ndocker run --rm --workdir /_site -v $(pwd):/_site --entrypoint \"npm\" node:18.16.1-alpine3.18 run build\n```\n\nor\n\n```bash\n./build.sh\n```\n\n## Set up on server\n\n### Install nvm and node\n\nInstall these in a location accessible to anyone, so that the `www-data` user can use them later.\n\n```bash\n# install nvm to /usr/alifeee/nvm\nexport XDG_CONFIG_HOME=\"/usr/alifeee\"\n# install nvm, see https://github.com/nvm-sh/nvm\ncurl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash\n# install node\nsource ~/.bashrc\nnvm install 20\nnvm use 20\n```\n\nNow you can use `node` and `npm` as any user by running:\n\n```bash\nexport NVM_DIR=\"/usr/alifeee/nvm\"\n[ -s \"$NVM_DIR/nvm.sh\" ] \u0026\u0026 \\. \"$NVM_DIR/nvm.sh\"  # This loads nvm\n\nnvm use 20\nnpm run build\n```\n\nTest this by putting the above in a script and running (e.g.,) `sudo -u www-data build.sh`\n\n### Download files\n\n```bash\nmkdir -p /var/www/\ngit clone git@github.com:alifeee/simple-calendar.git /var/www/simple-calendar/\ncd /var/www/simple-calendar/\nnpm install\nnpm run build\nchown -R alifeee:www-data _site/\n```\n\n### Edit nginx config\n\n```bash\nsudo nano /etc/nginx/nginx.conf\n```\n\n```nginx\n  server {\n    server_name cal.alifeee.co.uk;\n    location / {\n      root /var/www/simple-calendar/_site;\n      try_files $uri $uri/ =404;\n      add_header Cache-Control no-cache;\n      if_modified_since off;\n      add_header Last-Modified \"\";\n    }\n    location = /edit {\n      include fastcgi_params;\n      fastcgi_param SCRIPT_FILENAME /var/www/simple-calendar/edit;\n      fastcgi_pass unix:/var/run/fcgiwrap.socket;\n      auth_basic \"calendar edit\";\n      auth_basic_user_file /etc/nginx/.htpasswd;\n    }\n    listen 80;\n    listen [::]:80;\n  }\n```\n\n```bash\nsudo certbot --nginx\nsudo systemctl restart nginx.service\n```\n\n### Set up Python for CGI edit script\n\n```bash\npython3 -m venv env\n./env/bin/pip install -r requirements.txt\nchown alifeee:www-data _data/alfie.yaml\n```\n\nto test edit script:\n\n```bash\necho 'name=alfie\u00262024-09-01=what' | sudo -u www-data ./edit\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falifeee%2Fsimple-calendar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falifeee%2Fsimple-calendar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falifeee%2Fsimple-calendar/lists"}