First assignment:
Add 'delete' Entry function to Raffler app
Second assignment:
Create an Admin tool in Angular for the Cookbook app ( or any of your apps that have some sort of user model! )
Requirements:
- Add admin flag to the User model. If set to true, User has admin privileges.
- Add active flag to the User model. User is allowed to login to Cookbook app only if active flag is true.
- Seed the database with at least one admin User. Only Admin user shall be allowed to use admin tool
- Admin tool features
- Admin User should be able to see all users
- Admin User should be able to toggle user's active status
- Admin User should be able to toggle user's admin status
- Admin User should be able to delete user
- Bonus: Admin User should be able to create new user
Two implementation options
A) Turn CookBook/Your app into Angular app. Add a link 'Admin' to the nav bar, only admin Users should be able to see it. Clicking Admin link takes you to the Admin page/tool, implement it using Angular. Other Cookbook pages remain as is.
B) Build a new Admin tool on Angular/Node stack (use wdi-angular-template as starting point). Make app talk to CookBook rails server to retrieve/update User data.