{"id":24388263,"url":"https://github.com/lastlink/realworld-apps-script","last_synced_at":"2025-04-11T05:41:15.222Z","repository":{"id":44045188,"uuid":"221129206","full_name":"lastlink/realworld-apps-script","owner":"lastlink","description":"jwt rest api using realworld spec and  google apps script ","archived":false,"fork":false,"pushed_at":"2023-01-05T00:46:45.000Z","size":2407,"stargazers_count":10,"open_issues_count":20,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T03:41:35.648Z","etag":null,"topics":["appsscript","google-apps-script","gsuite","realworld-backend"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/lastlink.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-11-12T04:23:24.000Z","updated_at":"2023-04-09T18:41:28.000Z","dependencies_parsed_at":"2023-02-03T02:00:55.052Z","dependency_job_id":null,"html_url":"https://github.com/lastlink/realworld-apps-script","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/lastlink%2Frealworld-apps-script","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lastlink%2Frealworld-apps-script/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lastlink%2Frealworld-apps-script/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lastlink%2Frealworld-apps-script/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lastlink","download_url":"https://codeload.github.com/lastlink/realworld-apps-script/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248351071,"owners_count":21089268,"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":["appsscript","google-apps-script","gsuite","realworld-backend"],"created_at":"2025-01-19T13:58:52.202Z","updated_at":"2025-04-11T05:41:15.201Z","avatar_url":"https://github.com/lastlink.png","language":"JavaScript","funding_links":[],"categories":["Development"],"sub_categories":["Starter Kits"],"readme":"# ![RealWorld Google Apps Script Example App using gs](image.jpg) **RealWorld** example app (WIP)\n\n## Description\n\n- based off of the [apps-script-starter](https://github.com/labnol/apps-script-starter)\n- [RealWorld Issue 434](https://github.com/gothinkster/realworld/issues/434)\n- will follow the [spec](https://github.com/gothinkster/realworld/tree/master/api) using GET and POST with a cors proxy\n\n### Getting Started\n\n- `npm install` install dependencies\n- copy `src\\server\\config.template.js` to `src\\server\\config.js`\n  - change the jwt encryption key and also give the id to the google script you're going to link it to\n- `npx clasp login` Log in to Google clasp and authorize with your Google account. Open the link and authorize.\n\n- Setup database and deploy location (options)\n  1. `npx clasp create --type sheets --title \"RealWorld Apps Script Project\" --rootDir ./dist` Create a new Google Script bound to a Google Sheet (or set the type as standalone to create a standalone script in your Google Drive). Follow prompts in cmd to setup. May need to run this 2x and delete first document created after following the prompts.\n    - Linked scripts file will be located in **.clasp.json**\n  1. Copy [template](https://docs.google.com/spreadsheets/d/10e_ys79KtAp84wu8gJuWrAqxxaU8ebzC49YXIHjfl38/edit?usp=sharing)\n    - Tools \u003e Script Editor \u003e copy the script id into from the url **.claps.json**\n\n## Deploy\n\n- `npm run deploy`\n- `npm run deploy:prod` Deploy the project (production mode)\n- faster development\n  - `npm run watch` can auto build webpack files for dev mode for faster development cycle\n  - `npm run upload` manually upload **dist** files\n\n## Proxy\n\n- see [ref](https://github.com/softius/php-cross-domain-proxy/blob/master/proxy.php)\n  - proxy allows cors issues to be resolved while in browser\n  - also DELETE and PUT requests will be forced to POST requests\n  - besides content-type in POST request doesn't support headers, proxy will accept `Authorization: Token {{token}}` and will forward in post body\n\n- run simple server\n  - `cd proxy`\n  - `php -S localhost:8000`\n  - open `http://localhost:8000/`\n\n### Development vs Production mode\n\nIn the production mode, the function names and variable names are shrinked and the output code is auto-minifed. The production mode is not recommended for testing and debugging the Apps Script code.\n\n### The .claspignore file\n\nThe `.claspignore` file allows you to specify file and directories that you do not wish to not upload to your Google Apps Script project via `clasp push`.\n\nThe default `.claspignore` file of the Apps Script Starter kit will push all the JS and HTML inside the `rootDir` folder and ignore all the other files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flastlink%2Frealworld-apps-script","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flastlink%2Frealworld-apps-script","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flastlink%2Frealworld-apps-script/lists"}