Overnap
Builds for 1 pipeline passed in 8 minutes 5 seconds

Merge branch 'feature/polish' into develop

1 +MIT License
2 +
3 +Copyright (c) 2020 Overnap
4 +
5 +Permission is hereby granted, free of charge, to any person obtaining a copy
6 +of this software and associated documentation files (the "Software"), to deal
7 +in the Software without restriction, including without limitation the rights
8 +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 +copies of the Software, and to permit persons to whom the Software is
10 +furnished to do so, subject to the following conditions:
11 +
12 +The above copyright notice and this permission notice shall be included in all
13 +copies or substantial portions of the Software.
14 +
15 +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 +SOFTWARE.
...@@ -5,3 +5,41 @@ ...@@ -5,3 +5,41 @@
5 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="build status" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/build.svg" /></a> 5 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="build status" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/build.svg" /></a>
6 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="coverage report" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/coverage.svg" /></a> 6 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="coverage report" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/coverage.svg" /></a>
7 </p> 7 </p>
8 +Typescript로 작성된 오픈소스 그림퀴즈 웹 어플리케이션입니다.
9 +
10 +캐치마인드와 skribbl.io로 대표되는 인기 게임 장르이나,
11 +
12 +완성도가 높은 웹 버전 오픈소스가 없어 제작했습니다.
13 +
14 +[백엔드](./server)[프론트엔드](./web)를 모두 포함합니다.
15 +
16 +
17 +
18 +## 백엔드 (./server)
19 +
20 +Express와 socket.io를 기반으로 한 node.js 서버입니다.
21 +
22 +### Usage
23 +
24 +`$ yarn`으로 의존성을 설치합니다.
25 +
26 +!! 이하 작성해주세요.
27 +
28 +CORS 설정, 포트 설정, 빌드, 실행 등등
29 +
30 +
31 +
32 +## 프론트엔드 (./web)
33 +
34 +React.js와 tailwindcss를 기반으로 한 클라이언트입니다.
35 +
36 +### Usage
37 +
38 +`$ npm i`로 의존성을 설치합니다.
39 +
40 +본인의 백엔드 서버 URI를 [SocketContext.ts](./src/contexts/SocketContext.ts)에 입력합니다.
41 +
42 +`$ npm start`로 디버그용 개발 서버를 엽니다.
43 +
44 +`$ npm run-script build`로 프로덕션 빌드를 할 수 있습니다.
45 +
......
1 -# Getting Started with Create React App 1 +# WEB
2 2
3 -This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 3 +Client of SketchQuiz written in React.js and Typescript.
4 4
5 -## Available Scripts 5 +## Usage
6 6
7 -In the project directory, you can run: 7 +### Dependency
8 8
9 -### `yarn start` 9 +`$ npm i`
10 10
11 -Runs the app in the development mode.\ 11 +### Config
12 -Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 12
14 -The page will reload if you make edits.\ 13 +Change URI in [SocketContext.ts](./src/contexts/SocketContext.ts).
15 -You will also see any lint errors in the console. 14 +### Build
16 15
17 -### `yarn test` 16 +`$ npm run-script build`
18 17
19 -Launches the test runner in the interactive watch mode.\ 18 +`$ npm run` for debug.
20 -See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 19
22 -### `yarn build`
23 -
24 -Builds the app for production to the `build` folder.\
25 -It correctly bundles React in production mode and optimizes the build for the best performance.
26 -
27 -The build is minified and the filenames include the hashes.\
28 -Your app is ready to be deployed!
29 -
30 -See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 -
32 -### `yarn eject`
33 -
34 -**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 -
36 -If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37 -
38 -Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39 -
40 -You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41 -
42 -## Learn More
43 -
44 -You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 -
46 -To learn React, check out the [React documentation](https://reactjs.org/).
......
...@@ -51,7 +51,7 @@ const Ready: React.FC<ReadyProps> = ({ users }) => { ...@@ -51,7 +51,7 @@ const Ready: React.FC<ReadyProps> = ({ users }) => {
51 : isReady ? 'bg-green-600' 51 : isReady ? 'bg-green-600'
52 : 'bg-green-500 active:bg-green-600'} 52 : 'bg-green-500 active:bg-green-600'}
53 text-white font-bold uppercase 53 text-white font-bold uppercase
54 - px-7 py-3 m-8 rounded shadow 54 + px-7 py-3 mb-8 rounded shadow
55 outline-none focus:outline-none hover:shadow-md 55 outline-none focus:outline-none hover:shadow-md
56 ease-linear transition-all duration-100`} 56 ease-linear transition-all duration-100`}
57 type="button" 57 type="button"
......
...@@ -7,7 +7,7 @@ interface UserStatusProps { ...@@ -7,7 +7,7 @@ interface UserStatusProps {
7 7
8 const UserStatus: React.FC<UserStatusProps> = ({ user }) => { 8 const UserStatus: React.FC<UserStatusProps> = ({ user }) => {
9 return ( 9 return (
10 - <div className='p-3 h-12 m-4 rounded-lg shadow'> 10 + <div className='p-3 h-12 m-4 mt-8 rounded-lg shadow'>
11 <div className={`${user.admin ? 'text-blue-500' : 11 <div className={`${user.admin ? 'text-blue-500' :
12 user.ready ? 'text-green-500' : 'text-black'} 12 user.ready ? 'text-green-500' : 'text-black'}
13 text-lg text-center align-middle 13 text-lg text-center align-middle
......