Merge branch 'master' of http://khuhub.khu.ac.kr/2020-1-capstone-design1/Triz_Project1
Showing
18 changed files
with
129 additions
and
10 deletions
.gitignore
0 → 100644
back/.dockerignore
0 → 100644
back/Dockerfile
0 → 100644
back/package-lock.json
0 → 100644
This diff could not be displayed because it is too large.
back/prisma/Dockerfile
0 → 100644
back/src/api/TestQL/TestQL.graphql
0 → 100644
back/src/api/TestQL/TestQL.js
0 → 100644
back/yarn.lock
0 → 100644
This diff is collapsed. Click to expand it.
docker-compose.yml
0 → 100644
1 | +version: "3.7" | ||
2 | +services: | ||
3 | + mysql: | ||
4 | + container_name: mysql | ||
5 | + ports: | ||
6 | + - 3306:3306 | ||
7 | + image: mysql:8.0.19 | ||
8 | + restart: always | ||
9 | + environment: | ||
10 | + MYSQL_DATABASE: $${MYSQL_DATABASE} | ||
11 | + MYSQL_ROOT_PASSWORD: $${MYSQL_ROOT_PASSWORD} | ||
12 | + volumes: | ||
13 | + - /var/lib/mysql | ||
14 | + prisma: | ||
15 | + links: | ||
16 | + - mysql | ||
17 | + depends_on: | ||
18 | + - mysql | ||
19 | + container_name: prisma | ||
20 | + ports: | ||
21 | + - "5555:5555" | ||
22 | + build: | ||
23 | + context: back/prisma | ||
24 | + dockerfile: Dockerfile | ||
25 | + environment: | ||
26 | + MYSQL_URL: $${MYSQL_URL} | ||
27 | + volumes: | ||
28 | + - /app/prisma | ||
29 | + backend: | ||
30 | + links: | ||
31 | + - mysql | ||
32 | + depends_on: | ||
33 | + - mysql | ||
34 | + - prisma | ||
35 | + container_name: backend | ||
36 | + ports: | ||
37 | + - "4000:4000" | ||
38 | + build: | ||
39 | + context: back | ||
40 | + dockerfile: Dockerfile | ||
41 | + environment: | ||
42 | + MYSQL_URL: $${MYSQL_URL} | ||
43 | + FRONTEND_URL: $${FRONTEND_URL} | ||
44 | + volumes: | ||
45 | + - ./back:/app | ||
46 | + - ./back/node_modules:/app/node_modules | ||
47 | + - ./back/prisma:/app/prisma | ||
48 | + frontend: | ||
49 | + container_name: frontend | ||
50 | + ports: | ||
51 | + - "3000:3000" | ||
52 | + build: | ||
53 | + context: front | ||
54 | + dockerfile: Dockerfile | ||
55 | + environment: | ||
56 | + BACKEND_URL: $${BACKEND_URL} | ||
57 | + volumes: | ||
58 | + - ./front:/app | ||
59 | + - ./front/node_modules:/app/node_modules |
front/.dockerignore
0 → 100644
1 | +node_modules | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
front/Dockerfile
0 → 100644
front/package-lock.json
0 → 100644
This diff could not be displayed because it is too large.
1 | { | 1 | { |
2 | - "name": "front", | 2 | + "name": "capstone-front", |
3 | "version": "0.1.0", | 3 | "version": "0.1.0", |
4 | "private": true, | 4 | "private": true, |
5 | "dependencies": { | 5 | "dependencies": { |
... | @@ -7,6 +7,7 @@ | ... | @@ -7,6 +7,7 @@ |
7 | "@testing-library/react": "^9.3.2", | 7 | "@testing-library/react": "^9.3.2", |
8 | "@testing-library/user-event": "^7.1.2", | 8 | "@testing-library/user-event": "^7.1.2", |
9 | "apollo-boost": "^0.4.7", | 9 | "apollo-boost": "^0.4.7", |
10 | + "core-js": "^3.6.5", | ||
10 | "graphql": "^15.0.0", | 11 | "graphql": "^15.0.0", |
11 | "react": "^16.13.1", | 12 | "react": "^16.13.1", |
12 | "react-apollo-hooks": "^0.5.0", | 13 | "react-apollo-hooks": "^0.5.0", |
... | @@ -17,7 +18,7 @@ | ... | @@ -17,7 +18,7 @@ |
17 | "react-scripts": "3.4.1", | 18 | "react-scripts": "3.4.1", |
18 | "react-toastify": "^5.5.0", | 19 | "react-toastify": "^5.5.0", |
19 | "styled-components": "^5.1.0", | 20 | "styled-components": "^5.1.0", |
20 | - "styled-reset": "^4.1.2" | 21 | + "styled-reset": "^4.1.3" |
21 | }, | 22 | }, |
22 | "scripts": { | 23 | "scripts": { |
23 | "start": "react-scripts start", | 24 | "start": "react-scripts start", | ... | ... |
front/yarn.lock
0 → 100644
This diff could not be displayed because it is too large.
package.json
0 → 100644
1 | +{ | ||
2 | + "name": "capstone", | ||
3 | + "version": "1.0.0", | ||
4 | + "description": "", | ||
5 | + "scripts": { | ||
6 | + "start": "docker-compose up", | ||
7 | + "build": "docker-compose build", | ||
8 | + "stop": "docker-compose down", | ||
9 | + "clean": "docker system prune -af", | ||
10 | + "clean:volumes": "docker volume prune -f", | ||
11 | + "seed": "docker exec -it prisma npm run seed" | ||
12 | + }, | ||
13 | + "author": { | ||
14 | + "name": "sdy, kms", | ||
15 | + "email": "vel1024@khu.ac.kr" | ||
16 | + }, | ||
17 | + "license": "ISC" | ||
18 | +} |
-
Please register or login to post a comment