Skip to content

centrodph/Meteor-team-wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meteor-team-wiki

Notes

http://es.discovermeteor.com/

Install Meteor

$ curl https://install.meteor.com/ | sh

Testing on c9

meteor --port $IP:$PORT

config external mongo db

export MONGO_URL=mongodb://SERVERNAME:PORT/YOUR_DB_APP

Install dependencies

npm install

Remove insecure packages

meteor remove insecure meteor remove autopublish

Start server in another port

-op1: meteor run --port 5050 // https://forums.meteor.com/t/meteor-starts-only-on-port-3000-not-any-other-port/27271/8 -op2: edit the package.json file to

"scripts": { "start": "meteor run --port 5050" }

and start the server with npm start

Behind a Proxy

export HTTP_PROXY=http://xxx.xxx:port

export HTTPS_PROXY=http://xxx.xxx:port

Use collections inside React

meteor npm install --save react-addons-pure-render-mixin meteor add react-meteor-data //removed meteor add reywood:publish-composite meteor add fourseven:scss //compile SASS // docs: https://github.com/fourseven/meteor-scss meteor npm install --save react-router react-router-dom meteor npm install --save bcrypt

You can read the full documentation on : https://www.meteor.com/tutorials/react/collections

Add users accounts

meteor add accounts-ui accounts-password Example: https://www.meteor.com/tutorials/react/adding-user-accounts

Custom user management

http://www.mrscottmcallister.com/custom-authentication-in-meteor/

Related Documents

I am looking this article about it: https://www.discovermeteor.com/blog/reactive-joins-in-meteor/ I am thinking a good approach can be: https://github.com/peerlibrary/meteor-reactive-publish

// removed https://github.com/englue/meteor-publish-composite

Add redux to MeteorJs https://www.npmjs.com/package/react-redux-meteor

Add modal https://reactcommunity.org/react-modal/

Funtions description

Team: api/team

  • Add: name, date, description, owner
  • Update: name , date, description
  • Delete: teamid
  • Add users: teamid, userid
  • Add channel: teamid, channelid

User: api/user

  • Add team: teamid
  • Add document: document
  • Update team: teamid, status

channel: api/channel

  • Add channel: name, date, teamid
  • Add message: msgid
  • Update channel: channelid, status

Meteor suscribe onReady dispatch

https://marmelab.com/blog/2015/11/27/meteor-webpack-react-redux.html

const suscription = Meteor.subscribe('myteams', { onReady: function() { return dispatch(fetchTeamsLoaded(YourCollection.find({}).fetch())); }, onError: function() { throw new Error('Error was ocurred'); } });

redux form

http://www.thegreatcodeadventure.com/react-redux-tutorial-part-vi-the-edit-feature/

Releases

No releases published

Packages

No packages published