{"id":23564870,"url":"https://github.com/preston4896/ectranslator","last_synced_at":"2025-05-16T05:10:55.400Z","repository":{"id":75289575,"uuid":"186048068","full_name":"preston4896/ECTranslator","owner":"preston4896","description":"This repo contains the source code for our very own English to Chinese translator web app using the Google Translate API.","archived":false,"fork":false,"pushed_at":"2020-02-17T23:34:10.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-17T16:51:45.186Z","etag":null,"topics":["english-to-chinese","google-cloud","google-translate-api","translator-text-api"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/preston4896.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":"2019-05-10T20:07:04.000Z","updated_at":"2020-02-17T23:34:12.000Z","dependencies_parsed_at":"2023-06-06T01:00:33.691Z","dependency_job_id":null,"html_url":"https://github.com/preston4896/ECTranslator","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/preston4896%2FECTranslator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preston4896%2FECTranslator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preston4896%2FECTranslator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/preston4896%2FECTranslator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/preston4896","download_url":"https://codeload.github.com/preston4896/ECTranslator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471049,"owners_count":22076587,"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":["english-to-chinese","google-cloud","google-translate-api","translator-text-api"],"created_at":"2024-12-26T17:31:19.841Z","updated_at":"2025-05-16T05:10:55.382Z","avatar_url":"https://github.com/preston4896.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ECTranslator by Preston Ong and Sach Samala\n\n## Instruction To Use:\n\nIf the web site is not live, run `$ node server.js` on the server command line. Otherwise if you do not have access to the server, please contact us.\n\nTo launch the website, go to the browser and enter http://server162.site:53754/ECTlogin.html.\n\n## API queries\n\n#### NOTE: Users must sign in to Google to query APIs.\n\nUsers may insert API query into the URL address to receive data in JSON format.\n\nTo insert a query, add a slash after the `users` directory in the URL, then enter the appropriate query key word for the specific data.\n\nFor example:\n\n`server162.site:53754/users/` query begins here\n\n#### Translate API\n\nTo get the translate data, enter:\n\n`/translate?english = ` English word goes here\n\n#### Store API\n\nUsers can manually store data into the database by inserting this query. However, users will have to also manually insert the Chinese output into the URL address. For example:\n\n`/store?english= ` English word goes here `\u0026chinese= ` Chinese word goes here\n\n#### Print API\n\nThis query prints out the entire database. Insert:\n\n`/print`\n\n------------------\n\n#### Progress Log\n\n- Set up Google Cloud and acquired Google Translate API Key.\n\n- Server can now handle translate query and return output to the HTML page.\n\n- Set up database.\n\n- Database should only contains 5 columns. There are: user, English, Traditional Chinese, # of Seens and # of Corrects.\n\n- Card Creation Page is now built with React.\n\n- React rendering for multiple page.\n\n- Send a request to server to fetch database (received from client-side).\n\n- Review Page is functional.\n\n- Linked login page to creation page.\n\n- Added code to support Google Account (OAuth2) authentication.\n\n- Fixed Memory Leak while rendering Review Page.\n\n- The app is currently using React Production Build with minified `ECTReact.min.js` for faster page rendering.\n\n#### Future Improvement(s) To Be Made:\n\n- CSS Designs.\n\n- Modify \"Seen\" and \"Correct\" counts in the database.\n\n- Login page needs to determine whether to redirect to creation or review page, based on new vs returning users.\n\n- Database should include user first, last name, Google ID (unique primary key).\n\n- Make sure cards are only visible to the correct user.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreston4896%2Fectranslator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpreston4896%2Fectranslator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpreston4896%2Fectranslator/lists"}