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

Prompt for db url during init #18

Closed
1 task done
RyanClementsHax opened this issue Feb 21, 2024 · 0 comments · Fixed by #19
Closed
1 task done

Prompt for db url during init #18

RyanClementsHax opened this issue Feb 21, 2024 · 0 comments · Fixed by #19
Assignees

Comments

@RyanClementsHax
Copy link
Collaborator

Is there an existing issue that is already proposing this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe it

mantis init doesn't handle setting the db url; therefore, the generated app doesn't work until a apps/server/.env.local or similar is added with contents like the following.

# Example
MONGODB_URI='mongodb+srv://<user>:<password>@<cluster-name>.mongodb.net/?retryWrites=true&w=majority'

Describe the solution you'd like

mantis init should prompt the user for a db url to use during generation. It should also create a apps/server/.env.local file with the following content so the user doesn't have to create one themselves.

MONGODB_URI='<the url given>'

Teachability, documentation, adoption, migration strategy

No response

What is the motivation / use case for changing the behavior?

This makes it easier to create the app seamlessly

@RyanClementsHax RyanClementsHax self-assigned this Feb 21, 2024
RyanClementsHax added a commit that referenced this issue Feb 21, 2024
- prompt user for mongo url to automatically create environment variables for
- validate the url by attempting to connect to the url

Closes #18
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

Successfully merging a pull request may close this issue.

1 participant