MinsoftK
1 +*.xlsx
2 +.env
...\ No newline at end of file ...\ No newline at end of file
1 +.env
2 +
3 +node_modules
...\ No newline at end of file ...\ No newline at end of file
1 # node_modules 1 # node_modules
2 node_modules 2 node_modules
3 3
4 -# lock files
5 -yarn.lock
6 -package-lock.json
7 -
8 .env 4 .env
9 5
10 note.txt 6 note.txt
...\ No newline at end of file ...\ No newline at end of file
......
1 +FROM node:12.16.2
2 +RUN npm i -g @prisma/cli
3 +
4 +RUN mkdir /app
5 +WORKDIR /app
6 +
7 +COPY package*.json ./
8 +COPY prisma ./prisma/
9 +
10 +RUN npm install && npx prisma generate
11 +
12 +CMD ["npm","run","dev"]
This diff could not be displayed because it is too large.
1 { 1 {
2 - "name": "capstone2", 2 + "name": "capstone-back",
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "description": "1st semester capstone design project", 4 "description": "1st semester capstone design project",
5 "scripts": { 5 "scripts": {
......
1 +FROM node:12.16.2
2 +RUN npm i -g @prisma/cli
3 +
4 +RUN mkdir /app
5 +WORKDIR /app
6 +
7 +COPY ./ ./prisma/
8 +
9 +CMD ["prisma", "admin"]
...\ No newline at end of file ...\ No newline at end of file
1 +type Query {
2 + TestQL(text: String!): String!
3 +}
1 +export default {
2 + Query: {
3 + TestQL: async (_, args) => {
4 + const { text } = args;
5 + return text;
6 + },
7 + },
8 +};
This diff is collapsed. Click to expand it.
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
1 +node_modules
...\ No newline at end of file ...\ No newline at end of file
...@@ -21,6 +21,3 @@ ...@@ -21,6 +21,3 @@
21 npm-debug.log* 21 npm-debug.log*
22 yarn-debug.log* 22 yarn-debug.log*
23 yarn-error.log* 23 yarn-error.log*
24 -
25 -# yarn.lock
26 -yarn.lock
...\ No newline at end of file ...\ No newline at end of file
......
1 +FROM node:12.16.2
2 +
3 +RUN mkdir /app
4 +WORKDIR /app
5 +RUN npx create-react-app .
6 +
7 +COPY package*.json ./
8 +RUN npm install
9 +
10 +CMD ["npm", "start"]
...\ No newline at end of file ...\ No newline at end of file
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",
......
This diff could not be displayed because it is too large.
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 +}