Let’s execute our first application!
cd $GOPATH/src/jiffy_tests/first_app
go run main.go -dev -rs
Executing with the -dev and -rs flags instructs our new application to initialize itself using the development configuration file, and forces a rebuild of the ‘Super’ authorization-group. Consequently, some warning and info messages will scroll up the screen which is expected.
2018/02/05 22:29:26 package sqac init is running
2018/02/05 22:29:26 successfully loaded the config file...
2018/02/05 22:29:26 JWTPrivKeyFile: jwtkeys/private.pem
2018/02/05 22:29:26 JWTPubKeyFile: jwtkeys/public.pem
2018/02/05 22:29:26 warning: auth usr.GET_SET not found in the db Auth master data
2018/02/05 22:29:26 warning: auth usr.CREATE not found in the db Auth master data
2018/02/05 22:29:26 warning: auth usr.GET_ID not found in the db Auth master data
...
...
2018/02/05 22:29:26 info: creating auth usr.GET_SET in the db Auth master data
2018/02/05 22:29:26 warning: new auth usr.GET_SET must be added to at least one group
2018/02/05 22:29:26 info: creating auth usr.CREATE in the db Auth master data
2018/02/05 22:29:26 warning: new auth usr.CREATE must be added to at least one group
...
...
2018/02/05 22:29:26 warning: new auth person.STATICFLTR_ByValidLicense must be added to at least one group
2018/02/05 22:29:26 info: creating auth person.STATICFLTR_CMD_ByValidLicense in the db Auth master data
2018/02/05 22:29:26 warning: new auth person.STATICFLTR_CMD_ByValidLicense must be added to at least one group
2018/02/05 22:29:26 The Super UsrGroup has been initialized with 42 Auth objects.
2018/02/05 22:29:26 re-initializing local middleware to accomodate Super group changes.
2018/02/05 22:29:27 admin user created with ID: 1 and initial password of initpass
Development settings selected...
Starting http server on port... 8080
If all goes well, a message indicating that the application is running will be displayed. During the startup, the application executed a number of steps:
Congratulations! Your first application is now open for business at http://127.0.0.1:8080
Note that subsequent starts of the application should be done without the use of the -rs flag.
cd $GOPATH/src/jiffy_tests/first_app
go run main.go -dev