Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clinical-meteor/accounts-housemd
Meteorite package to populate your Meteor.users() collection with clinicians from House MD television show.
https://github.com/clinical-meteor/accounts-housemd
Last synced: about 2 months ago
JSON representation
Meteorite package to populate your Meteor.users() collection with clinicians from House MD television show.
- Host: GitHub
- URL: https://github.com/clinical-meteor/accounts-housemd
- Owner: clinical-meteor
- Created: 2013-11-16T05:51:23.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2021-07-26T04:50:31.000Z (over 3 years ago)
- Last Synced: 2024-10-29T21:06:22.978Z (3 months ago)
- Language: JavaScript
- Size: 288 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##clincal:accounts-housemd
Meteor package to populate your Meteor.users() collection with personalities from the television series House, MD.
===============================
#### InstallationFirst, install the accounts-famous-dead-people package from the command line, like so:
````bash
# to add House MD users to your application
meteor add clinical:accounts-housemd# to initialize House MD users
INITIALIZE=true meteor# to initialize fHouse MD doctors using the HL7 FHIR Practitioner resource
INITIALIZE=true Practitioners=true meteor
````===============================
#### Meteor Methods````js
// initializeUsers()
Meteor.call('initializeHouseUsers', {
asPractitioner: true,
asUsers: true
});// removeHouseUsers()
Meteor.call('removeHouseUsers', {
practitioners: true,
users: true
});
````===============================
#### Default User Record SchemaThe user objects are have a fairly simple document schema that looks like the following:
````js
{
username: 'camron',
password: 'camron',
email: '[email protected]',
profile: {
name: 'Allison Camron',
role: 'Physician',
avatar: '/packages/clinical_accounts-housemd/housemd/allison.camron.jpg'
}
}
````===============================
#### Default Usernames and PasswordsUsernames and passwords for all the users should be the same. For the most part, the username and password will both be the person's first name, but a number of users are set as the last name. All emails will be at the ``test.org`` domain.
===============================
#### Users ListAllison Camron
Eric Foreman
Gregory House
James Wilson
Lawrence Kutner
Lisa Cuddy
Robert Chase
Thirteen===============================
#### Example Usage````html
{{#each userList}}
{{profile.name}}
{{/each}}
````````js
if (Meteor.isClient) {
Meteor.subscribe("users");Template.registerHelper('userList', function(){
return Meteor.users.find();
});
}if (Meteor.isServer) {
Meteor.publish("users", function(){
return Meteor.users.find();
});
}
````===============================
#### Licensing![MIT License](https://img.shields.io/badge/license-MIT-blue.svg)
Images may be restricted by Fox Media. Best to only use this package for testing purposes.