refactor: Automates the process of running development environment#71
refactor: Automates the process of running development environment#71Pratik2026 wants to merge 3 commits intobsoc-bitbyte:mainfrom
Conversation
| cd backend | ||
|
|
||
| ## install the backend dependencies | ||
| echo "installing backend dependencies..." |
There was a problem hiding this comment.
Setup script should do the following -
- Installing dependencies
- Starting docker container
- Migrations and Seeding database
dev-env.sh
Outdated
| cd backend | ||
|
|
||
| ## Run migration | ||
| npm run migrate:dev |
There was a problem hiding this comment.
Dev script should just start the server and docker container at both frontend and backend.
…r development workflow
|
@Bhavik-ag There's a minute issue which I would like to discuss, on executing dev-env.sh file since we are running backend server in background (detached from the terminal) it causes the port 3333 remains in use even though the terminal has been killed due to which devs will have to either reopen the editor or manually close the port if they want to rerun the server. |
|
One possible solution would be to create a Cleanup function which will close the port whenever the terminal got closed. Let me know if this required. |
dev-env.sh
Outdated
| cd ../frontend | ||
|
|
||
| ## start the frontend development server | ||
| npm run dev & gnome-terminal -- npm run dev |
There was a problem hiding this comment.
Here npm run dev is executed two times which cause the frontend server to start on both port 3000 and 3001.
|
@prajjwalkapoor Do you have any idea on the mentioned issue by @Pratik2026? |
Overview
This PR does the following: It introduces the Automation for the setup and running development environment server to streamline the development workflow.
Essential Checklist