diff --git a/README.md b/README.md index 804648cb..317ab400 100644 --- a/README.md +++ b/README.md @@ -26,38 +26,38 @@ This is an application that allows the library to create workflows that allow st ## Database creation - * Run `rake servers:start` to start a local postgres server, create, and migrate. + * Run `bundle exec rake servers:start` to start a local postgres server, create, and migrate. * seed the database ``` - rake db:seed # you must be on the VPN for this step + bundle exec rake rake db:seed # you must be on the VPN for this step ``` - * `rake db:seed` only creates accounts for users listed in the [Active Library Staff-Scheduled-en CSV](https://github.com/pulibrary/approvals/blob/main/Active%20Library%20Staff%20-%20Scheduled-en.csv) file. If you are not yet listed in the file, you will have to add a row with your NetID in order to log + * `bundle exec rake db:seed` only creates accounts for users listed in the [Active Library Staff-Scheduled-en CSV](https://github.com/pulibrary/approvals/blob/main/Active%20Library%20Staff%20-%20Scheduled-en.csv) file. If you are not yet listed in the file, you will have to add a row with your NetID in order to log in to the system later. * There are additional rake tasks that allow you to create scenarios and requests in the system * make_me_a_department_head\[netid,number\] for example the following command will create a department for cac9 to be the head of and have 5 supervisors, each with 5 reports. ``` - rake approvals:make_me_a_department_head\[cac9,5\] + bundle exec rake approvals:make_me_a_department_head\[cac9,5\] ``` * make_me_a_supervisor\[netid,number\] for example the following command will create 7 directs report for cac9 to supervise ``` - rake approvals:make_me_a_supervisor\[cac9,7\] + bundle exec rake approvals:make_me_a_supervisor\[cac9,7\] ``` * make_requests_for_everyone Make random numbers of request in random states for everyone in the system. ``` - rake approvals:make_requests_for_everyone + bundle exec rake approvals:make_requests_for_everyone ``` ## Testing User Accounts * Users can have test requests created for them via rake. The following command creates ``` - rake approvals:make_requests_for_user[netid] + bundle exec rake approvals:make_requests_for_user[netid] ``` * Other users can subsume other user's roles by manipulating the system's delegation features. The following task allows the user with netid_delegate to review and make requests on behalf of netid. ``` - rake approvals:make_delegate[netid_delegate,netid] + bundle exec rake approvals:make_delegate[netid_delegate,netid] ``` * If the newly delegated individual then visits the "delegates/to_assume" route in the application they will be able select the user attached to 'netid' and see the requests they've made and make them on their behalf.