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

Update yarn dev to start frontend and backend for local development #27

Closed
wants to merge 2 commits into from

Conversation

elvincheng3
Copy link
Contributor

Description/Problem

Update yarn dev to start frontend and backend with hot reloading for easier development.

Solution

^

Dependencies

[ ] This PR adds new dependencies

Testing

N/A

@vercel
Copy link

vercel bot commented Sep 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mfa-form-automator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 24, 2023 1:19am

@kaiyangzheng kaiyangzheng self-assigned this Sep 24, 2023
package.json Outdated
@@ -9,7 +9,7 @@
"apps/web"
],
"scripts": {
"dev": "yarn --cwd apps/web dev",
"dev": "yarn --cwd apps/web dev && yarn --cwd apps/server start:dev",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

&& should be & because we want the processes to run in parallel; the backend will never run if it's sequential i believe

Copy link
Collaborator

@kaiyangzheng kaiyangzheng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment. Also, on my machine running yarn start:dev in apps/server starts the backend on port 4000 when my env file has 8080, not sure why it can't read the env file

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 this pull request may close these issues.

2 participants