File tree Expand file tree Collapse file tree 6 files changed +60
-1
lines changed Expand file tree Collapse file tree 6 files changed +60
-1
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,6 @@ Tech Stack
2121
2222## Conflict management
2323Handled via Y.js (CRDT)
24+
25+ ## Running the app
26+ docker compose up (--build if image not there)
Original file line number Diff line number Diff line change 1+ node_modules
2+ npm-debug.log
3+ dist
Original file line number Diff line number Diff line change 1+ FROM node:18
2+
3+ WORKDIR /app
4+
5+ COPY package*.json ./
6+ RUN npm install
7+
8+ COPY . .
9+ EXPOSE 8080
10+
11+ CMD ["npm" ,"start" ]
Original file line number Diff line number Diff line change 44 "description" : " " ,
55 "main" : " index.js" ,
66 "scripts" : {
7- "test" : " echo \" Error: no test specified\" && exit 1"
7+ "test" : " echo \" Error: no test specified\" && exit 1" ,
8+ "start" :" npx tsc && node dist/index.js"
89 },
910 "keywords" : [],
1011 "author" : " " ,
Original file line number Diff line number Diff line change 1+ version : " 3.9"
2+
3+ services :
4+ backend :
5+ build : ./backend
6+ container_name : backend
7+ ports :
8+ - " 8080:8080"
9+ networks :
10+ - app-network
11+ env_file :
12+ - ./backend/.env
13+
14+ frontend :
15+ build : ./frontend
16+ container_name : frontend
17+ ports :
18+ - " 3000:3000"
19+ networks :
20+ - app-network
21+ depends_on :
22+ - backend
23+ env_file :
24+ - ./frontend/.env
25+ networks :
26+ app-network :
27+ driver : bridge
Original file line number Diff line number Diff line change 1+ FROM node:18
2+
3+ WORKDIR /app
4+
5+ COPY package*.json ./
6+ RUN npm install
7+
8+ COPY . .
9+
10+ RUN npm run build
11+
12+ EXPOSE 3000
13+
14+ CMD ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments