You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
$ node -r dotenv/config express.js
Server starting... OK.
Listening at http://localhost:3000
Checking https://11ddce98.ngrok.io/...
Server not responding... if you are running a proxy, please verify it is running.
Aborting...
User runs the command in another window, and returns to see this output...
Received request: PUT /admin/setup-database
Setting up database... OK
Checking database... OK
Startup complete. Ready for requests...
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...
$ node -r dotenv/config express.js
Server starting... OK.
Listening at http://localhost:3000
Checking https://11ddce98.ngrok.io/... OK
Checking database...
Database does not appear configured. Initializing... OK
Checking database... OK
Startup complete. Waiting for requests...
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...
I also had an idea here: #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...
The text was updated successfully, but these errors were encountered: