Skip to content

initial setup for the forntend#3

Open
Davut97 wants to merge 2 commits intoReCoded-Org:masterfrom
Davut97:master
Open

initial setup for the forntend#3
Davut97 wants to merge 2 commits intoReCoded-Org:masterfrom
Davut97:master

Conversation

@Davut97
Copy link
Copy Markdown
Contributor

@Davut97 Davut97 commented Jul 19, 2020

i created the initial setup for the front end, i had to create Makefile.default in order to use the same commends for backend and fornt end, and avoid copying.

@louisrli
Copy link
Copy Markdown
Contributor

actually in this case, you should use the different makefile for frontend and backend, even if you have to copy.

think of it more like coincidence that they happen to be the same, but in general, frontend and backend are considered completely different products. for example, imagine this: i made the frontend and you made the backend. we don't see each other's code. someone should be able to ONLY use your backend folder in order to run the backend (they may run on completely different machines and so on). the short version of this is that you should think of them as completely separate entities

the spirit of not copying is good though :)

@Davut97
Copy link
Copy Markdown
Contributor Author

Davut97 commented Jul 19, 2020

for the makefike, backend and frontend have different file, but there is use "commands" ( i dont know what call them) are in common:
develop:
@ $(COMPOSE) up -d
@ $(COMPOSE) exec $(CONTAINER_NAME) /bin/bash ||true
@ $(COMPOSE) stop
@ $(COMPOSE) down
so i thought i should put it in a different file, just to avoid copying. please if i got it wrong let me know.

@louisrli
Copy link
Copy Markdown
Contributor

yes, i see the common code, but please read the reasoning in the message i wrote

@Davut97
Copy link
Copy Markdown
Contributor Author

Davut97 commented Jul 27, 2020

PTAL

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