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

Add logic to configurate the server properly #1

Open
2 tasks
heliomar-pena opened this issue Sep 25, 2022 · 0 comments
Open
2 tasks

Add logic to configurate the server properly #1

heliomar-pena opened this issue Sep 25, 2022 · 0 comments
Assignees
Milestone

Comments

@heliomar-pena
Copy link
Owner

heliomar-pena commented Sep 25, 2022

Currently, the server works in a simple way, import the .env and use it. But it doesn't have a hardy configuration, for example: what happens if I try to run the server and not import the needed .env?, the server isn't prepared for this and will crash without leaving a suitable error message to track the error.

That's the reason why we should add a separate logic for the server configuration before starting it, initializing the needed variables, handling the errors properly, and adding other needed configurations that currently we don't have, for example, to change the address or the development/production ports

Criteria acceptance

  • The server knows what should do if don't have the required .env
  • The server is importing carefully the configuration and is handling errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant