Open byrnereese opened 5 years ago
Great ideas!
I also had an idea here: https://github.com/ringcentral/ringcentral-chatbot-js/issues/5 Copy wordpress installation process and provide developer with a page to configure and setup. This way user doesn't even need to create .env file. Because every configuration is entered on the setup webpage. Let me know what do you think of this.
Right now bots are initialized by running a sequence of commands. Perhaps upon initial server start-up, the framework could detect the current status of various resources and display some useful data to the user. Consider for a moment the following developer experience via the console:
User starts ngrok. Then...
User runs the command in another window, and returns to see this output...
What is nice about this process is that the user can effectively abandon the README once the server has started. The console will guide them through the rest of the process.
A few more thoughts below...
Database Initialization
In the example above, the user is prompted to curl a URL to setup the database. I wonder, can we setup some logical defaults in the .env-sample, then trigger the database setup process automatically? Consider this...
Other setup steps
Also... can we detect if a bot has been added to glip? If so, that would be a great prompt as well. Not sure if this flow makes sense, but maybe...