- You need to create a package called
sponsor
. - The check with Helpers.isAdmin() need to done with allow/deny callback on collection.
Sponsors.insert
need to beinsertSponsor
Sponsors.remove
need to beremoveSponsor
scrollToTop
should be added in a filter that will be calledonAfterAction
on every pages- All the subscribe with a
wait()
method need to be put inside the functionwaitOn
of Iron-router - The admin route need to check if the current user is an admin
Why not using stripe checkout.js ? better support and builtin with everything.
inDollars
need to be done under aUtils
namespace
'submit #campaignForm'
use autoform and put everything inside a before callback
Why not using accounts-ui
to provide those forms?
Wrap every collection campaign
,transaction
, transfer
into their own package and use simple-schema
to define the database schema of each collection. We can use the validators of simple-schema
to validate any insert or update.
The stripe methods need to use the stripe package for server who provide sync methods instead of async.
All the jobs need to be done with the package job-collection
which is well written and made for this kind of case.