This input file for Meteor Kitchen will build meteor application with user account system and admin panel.
Generated application is using materialize frontend framework.
You can see live example here.
To build and run example, inside this directory type:
meteor-kitchen ./example-materialize.json ./example-materialize
cd ./example-materialize
meteor
JSON and YAML files are the same example in different formats.
Meteor-kitchen natively supports input files written in JSON. To use the YAML example you'll need to have js-yaml converter installed. The following is the most common example of how to accomplish this:
npm install -g js-yaml
When you start the application and register, your user account will have role "user" by default and you will not be able to see admin panel.
To make yourself admin, you first need to find your user ID. Open mongo shell and type:
db.users.find().pretty()
Copy your user id and then type:
db.users.update({ _id: "YOUR_USER_ID" }, { $set: { roles: ["admin"] } })
Now, you have admin panel in your application and you can manage users.
This example has three user roles:
-
usercan login but cannot access admin panel -
admincan access admin panel -
blockeduser is blocked and cannot login
That's it :)