{"id":18615007,"url":"https://github.com/andrewjbateman/fullstack-twitter-clone","last_synced_at":"2026-04-16T18:03:53.919Z","repository":{"id":42209258,"uuid":"159078165","full_name":"AndrewJBateman/fullstack-twitter-clone","owner":"AndrewJBateman","description":":clipboard: Simple full-stack app that displays a list of messages ('tweets') generated on the client side and processes them using backend node.js. ","archived":false,"fork":false,"pushed_at":"2022-12-10T17:17:05.000Z","size":421,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T02:45:12.459Z","etag":null,"topics":["cors","css3","express-middleware","filter-plugin","full-stack","fullstack","html5","nodejs","rest-api","tutorial","tweets","vanilla-javascript"],"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/AndrewJBateman.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":"2018-11-25T21:53:29.000Z","updated_at":"2022-07-04T14:41:51.000Z","dependencies_parsed_at":"2023-01-26T04:30:24.396Z","dependency_job_id":null,"html_url":"https://github.com/AndrewJBateman/fullstack-twitter-clone","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/AndrewJBateman%2Ffullstack-twitter-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Ffullstack-twitter-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Ffullstack-twitter-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndrewJBateman%2Ffullstack-twitter-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndrewJBateman","download_url":"https://codeload.github.com/AndrewJBateman/fullstack-twitter-clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239406450,"owners_count":19633024,"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":["cors","css3","express-middleware","filter-plugin","full-stack","fullstack","html5","nodejs","rest-api","tutorial","tweets","vanilla-javascript"],"created_at":"2024-11-07T03:27:48.945Z","updated_at":"2025-11-03T03:30:32.372Z","avatar_url":"https://github.com/AndrewJBateman.png","language":"JavaScript","readme":"# :zap: Twitter Clone\n\n* Simple full-stack app that displays a list of messages ('tweets') generated on the client side and processes them using backend node.js. Future link to mongodb database to save messages.\n* **Note:** to open web links in a new window use: _ctrl+click on link_\n\n![GitHub repo size](https://img.shields.io/github/repo-size/AndrewJBateman/fullstack-twitter-clone?style=plastic)\n![GitHub pull requests](https://img.shields.io/github/issues-pr/AndrewJBateman/fullstack-twitter-clone?style=plastic)\n![GitHub Repo stars](https://img.shields.io/github/stars/AndrewJBateman/fullstack-twitter-clone?style=plastic)\n![GitHub last commit](https://img.shields.io/github/last-commit/AndrewJBateman/fullstack-twitter-clone?style=plastic)\n\n## :page_facing_up: Table of contents\n\n* [:zap: Twitter Clone](#zap-twitter-clone)\n\t* [:page_facing_up: Table of contents](#page_facing_up-table-of-contents)\n\t* [:books: General info](#books-general-info)\n\t* [:camera: Screenshots](#camera-screenshots)\n\t* [:signal_strength: Technologies](#signal_strength-technologies)\n\t* [:floppy_disk: Setup](#floppy_disk-setup)\n\t* [:computer: Code Examples](#computer-code-examples)\n\t* [:cool: Features](#cool-features)\n\t* [:clipboard: Status \u0026 To-Do List](#clipboard-status--to-do-list)\n\t* [:clap: Inspiration](#clap-inspiration)\n\t* [:envelope: Contact](#envelope-contact)\n\n## :books: General info\n\n* A simplified Twitter clone using simple front and backends. Dependencies updated aug 2020.\n\n## :camera: Screenshots\n\n![Example screenshot](./img/tweets-frontend.png).\n\n## :signal_strength: Technologies\n\n* [Node.js v12](https://nodejs.org/en/)\n* [npm javascript filter used on title and content user inputs](https://www.npmjs.com/package/bad-words)\n* [npm Express rate limiting](https://www.npmjs.com/package/express-rate-limit) using Node internal store (i.e.not an external database).\n* [npm monk toolkit for mongodb](https://nodejs.org/en/)\n\n## :floppy_disk: Setup\n\n* Backend: From the `/server` directory run `npm run dev` for a dev server. Navigate to `http://localhost:5000/`. The app uses Nodemon and will automatically reload if you change any of the source files. Navigate to `http://localhost:5000/tweets` to see tweets in JSON.\n* Frontend: open `/client/index.html` in browser. Enter a tweet and click 'Send Your Tweet' button. Tweet will be displayed below.\n\n## :computer: Code Examples\n\n* `server/index.js` - function to post tweet data from html frontend req.body parameters; filtering text then adding to tweets array.\n\n```javascript\n\napp.post('/tweets', (req, res, next) =\u003e {\n\tif(isValidTweet(req.body)) {\n\t\tconst tweet = {\n\t\t\tname: filter.clean(req.body.name.toString()),\n\t\t\tcontent: filter.clean(req.body.content.toString()),\n\t\t\tcreated: new Date()\n\t\t};\n\n\t\ttweets\n\t\t\t.prepend(tweet)\n\t\t\t.then(createdTweet =\u003e {\n\t\t\t\tres.json(createdTweet);\n\t\t\t});\n\n\t} else {\n\t\tres.status(422);\n\t\tres.json({\n\t\t\tmessage: 'Helooo, name and message are required'\n\t\t});\n\t}\n});\n\n```\n\n## :cool: Features\n\n* A simple app with vanilla javascript. No js framework used.\n\n## :clipboard: Status \u0026 To-Do List\n\n* Status: basic working app that saves tweets locally.\n* To-Do: Correct code so latest tweet listed first (`reverse()` function not working). Remove duplication of tweets. Add connection to mongodb database.\n\n## :clap: Inspiration\n\n* [Tutorial: The Coding Train: Build a Full Stack Twitter Clone with Coding Garden](https://www.youtube.com/watch?v=JnEH9tYLxLk)\n\n## :file_folder: License\n\n* This project is licensed under the terms of the MIT license.\n\n## :envelope: Contact\n\n* Repo created by [ABateman](https://github.com/AndrewJBateman), email: gomezbateman@yahoo.com\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Ffullstack-twitter-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrewjbateman%2Ffullstack-twitter-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrewjbateman%2Ffullstack-twitter-clone/lists"}