{"id":15304596,"url":"https://github.com/monkeymars/meteor-whatsapp","last_synced_at":"2025-10-08T09:30:50.072Z","repository":{"id":149889714,"uuid":"44473674","full_name":"monkeymars/meteor-whatsapp","owner":"monkeymars","description":"Code for meteor blog post - Whatsapp clone with meteor and ionic","archived":false,"fork":true,"pushed_at":"2015-09-28T10:35:16.000Z","size":320,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-02T07:57:05.555Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"idanwe/meteor-whatsapp","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkeymars.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}},"created_at":"2015-10-18T10:21:14.000Z","updated_at":"2015-10-18T10:21:16.000Z","dependencies_parsed_at":"2023-04-08T15:26:43.172Z","dependency_job_id":null,"html_url":"https://github.com/monkeymars/meteor-whatsapp","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fmeteor-whatsapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fmeteor-whatsapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fmeteor-whatsapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeymars%2Fmeteor-whatsapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeymars","download_url":"https://codeload.github.com/monkeymars/meteor-whatsapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235700110,"owners_count":19031668,"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":[],"created_at":"2024-10-01T07:57:10.840Z","updated_at":"2025-10-08T09:30:49.658Z","avatar_url":"https://github.com/monkeymars.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":" Meteor Whatsapp\n==============\n\n### Step 1 - Create the project\n\n1. Install meteor `$ curl https://install.meteor.com/ | sh`\n2. Create meteor project `$ meteor create whatsapp`\n3. Add angular and ionic `$ meteor add angular driftyco:ionic`\n4. Create project structure\n    * /client\n        - /scripts\n            + /lib\n                + app.js\n        - /styles\n        - /templates\n        - index.html\n    * /server\n    * /public \n\n### Step 2 - Mock chats view\n\n1. Add tabs and routes\n    * Add `tabs.ng.html`\n    * Add `routes.ng.js`\n2. Mock chats view\n    * Add ChatsCtrl\n    * Add `chats.ng.html`\n    * Add calendar filters\n        - Add moment `$ meteor add momentjs:moment`\n3. Setup sass\n    * Add sass `$ meteor add fourseven:scss`\n    * Add `chats.scss`\n\n### Step 3 - Add Collections\n\n1. Add Messages and Chats collections \n    * Add /lib/collections.js\n2. Add /server/boostrap.js\n3. Use angular meteor collection and remove() function\n\n### Step 4 - Add chat view\n\n1. Add chat detail view\n    * Add `chat-details.ng.html`\n    * Add `chat-details.scss`\n    * Add pictures: `chat-background.png`, `message-other.png`, `message-mine.png`\n        - images paths are absolute from the `public` folder\n    * Add angular moment \n        - `$ meteor add jasonaibrahim:angular-moment`\n        - Add `'angularMoment'` to the app dependencies\n    * Add `input` directive for better mobile experience - `directives/input.directive.ng.js`\n2. Add `'newMessage` method\n    * Add `lib/methods.js`\n    * `$ meteor add check`\n\n### Step 5 - Add users\n\n1. Add login with phone number\n    * `$ meteor add okland:accounts-phone`\n    * Add `server/sms.js` and `settings.json`\n2. Add login flow:\n    * Add `'login'`, `'confirmation'`, `'profile'` states\n    * Server: Add `'updateName'` method \n    * Add 'login', 'profile' style files\n3. Ensure that user is logged in:\n    * Ensure user before 'tab', 'profile' states - resolve `$meteor.requireUser()`\n    * Redirect to login route - `auth.js`\n    * Server: Ensure that user logged in before preform methods\n4. Server: Add `userId` to message \n5. Add `'settings'` tab with logout button\n    * Add controller and template\n\n### Step 6 - Create and remove chat\n\n1. Add new chat modal view - add controller and template\n2. Add `'newChat'` method and stub\n3. Add `chatName` and `chatPicture` filters to get data by user _id\n4. `$ meteor remove insecure`\n5. Add `'removeChat'` method and change in `ChatsCtrl`\n\n### Step 7 - Publish and subscribe\n\n1. `$ meteor remove autopublish`\n2. Add `'chats'` publish \n    * `$ meteor add reywood:publish-composite`\n    * `$ touch publications.js`\n    * Subscribe at the 'tab' state - resolve `$meteor.subscribe('chats');`\n3. Add `'users'` publish\n    * Subscribe at new chat controller\n\n### Step 8 - Add profile picture\n\n1. `$ meteor add okland:camera-ui`\n2. Add `'updatePicture'` method\n3. Add link to profile in settings\n\n### Step 9 - Send picutre\n\n1. Refactor `'sendMessage'` function to picture message\n2. Add `message.type`\n    * Run `db.messages.update({ type: { $exists: false } }, { $set: { type: 'text' } }, { multi: true })`\n3. Adjust `chats` and `chat-detail` templates and style\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeymars%2Fmeteor-whatsapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeymars%2Fmeteor-whatsapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeymars%2Fmeteor-whatsapp/lists"}