I have created two meteor apps. One(www.myapp.com) for displaying list of all authors name and second to show details of author with authors name as subdomain like "authorname.myapp.com".
How it is possible in meteor?
Thanks,
I have created two meteor apps. One(www.myapp.com) for displaying list of all authors name and second to show details of author with authors name as subdomain like "authorname.myapp.com".
How it is possible in meteor?
Thanks,
Copyright © 2021 Jogjafile Inc.
Below approach is used successfully in my apps for more than 1 year. Please keep in my mind that below code is very simplified and it should be used as inspiration rather than complete solution.
Requires
meteorhacks:fast-render
.I assume that every
subdomain
has its document in collectionSites
.The idea is that execution of
Sites.findOne()
on the client will be available in the same time when HTML was received.both/collections.js
server/routes.js
client/start.js
Should be helpful for you: Meteor/Iron-Router: how to define routes using data from settings.json