Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split index.js startup phases? #87

Closed
mStirner opened this issue Mar 27, 2022 · 0 comments
Closed

Split index.js startup phases? #87

mStirner opened this issue Mar 27, 2022 · 0 comments
Labels
close Discuss to be closed or closed soon

Comments

@mStirner
Copy link
Member

Due to the growing complexity & splitting into more modules/pieces, and unit testing, to avoid maintaining copies of code, it would be greate to split the "startup" phase into smaller pieces, e.g:

  • env.js -> Handle environment variable stuff
  • database.js -> Handle database connection
  • http-server.js -> Webserver & unix socket stuff
  • init-components.js -> Component initializing
  • Start plugins if everything else was fine.

Just my 2 cents, at 03:06 :D

@mStirner mStirner added the close Discuss to be closed or closed soon label Oct 25, 2022
@mStirner mStirner reopened this Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
close Discuss to be closed or closed soon
Projects
None yet
Development

No branches or pull requests

1 participant