Skip to content

Commit c190423

Browse files
committed
Rework
1 parent 5f5b475 commit c190423

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+17295
-0
lines changed

.gitignore

+216
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,216 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/windows,linux,macos,node,yarn,dotenv
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=windows,linux,macos,node,yarn,dotenv
4+
5+
### dotenv ###
6+
.env
7+
8+
### Linux ###
9+
*~
10+
11+
# temporary files which can be created if a process still has a handle open of a deleted file
12+
.fuse_hidden*
13+
14+
# KDE directory preferences
15+
.directory
16+
17+
# Linux trash folder which might appear on any partition or disk
18+
.Trash-*
19+
20+
# .nfs files are created when an open file is removed but is still being accessed
21+
.nfs*
22+
23+
### macOS ###
24+
# General
25+
.DS_Store
26+
.AppleDouble
27+
.LSOverride
28+
29+
# Icon must end with two \r
30+
Icon
31+
32+
# Thumbnails
33+
._*
34+
35+
# Files that might appear in the root of a volume
36+
.DocumentRevisions-V100
37+
.fseventsd
38+
.Spotlight-V100
39+
.TemporaryItems
40+
.Trashes
41+
.VolumeIcon.icns
42+
.com.apple.timemachine.donotpresent
43+
44+
# Directories potentially created on remote AFP share
45+
.AppleDB
46+
.AppleDesktop
47+
Network Trash Folder
48+
Temporary Items
49+
.apdisk
50+
51+
### Node ###
52+
# Logs
53+
logs
54+
*.log
55+
npm-debug.log*
56+
yarn-debug.log*
57+
yarn-error.log*
58+
lerna-debug.log*
59+
.pnpm-debug.log*
60+
61+
# Diagnostic reports (https://nodejs.org/api/report.html)
62+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
63+
64+
# Runtime data
65+
pids
66+
*.pid
67+
*.seed
68+
*.pid.lock
69+
70+
# Directory for instrumented libs generated by jscoverage/JSCover
71+
lib-cov
72+
73+
# Coverage directory used by tools like istanbul
74+
coverage
75+
*.lcov
76+
77+
# nyc test coverage
78+
.nyc_output
79+
80+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
81+
.grunt
82+
83+
# Bower dependency directory (https://bower.io/)
84+
bower_components
85+
86+
# node-waf configuration
87+
.lock-wscript
88+
89+
# Compiled binary addons (https://nodejs.org/api/addons.html)
90+
build/Release
91+
92+
# Dependency directories
93+
node_modules/
94+
jspm_packages/
95+
96+
# Snowpack dependency directory (https://snowpack.dev/)
97+
web_modules/
98+
99+
# TypeScript cache
100+
*.tsbuildinfo
101+
102+
# Optional npm cache directory
103+
.npm
104+
105+
# Optional eslint cache
106+
.eslintcache
107+
108+
# Microbundle cache
109+
.rpt2_cache/
110+
.rts2_cache_cjs/
111+
.rts2_cache_es/
112+
.rts2_cache_umd/
113+
114+
# Optional REPL history
115+
.node_repl_history
116+
117+
# Output of 'npm pack'
118+
*.tgz
119+
120+
# Yarn Integrity file
121+
.yarn-integrity
122+
123+
# dotenv environment variables file
124+
.env.test
125+
.env.production
126+
127+
# parcel-bundler cache (https://parceljs.org/)
128+
.cache
129+
.parcel-cache
130+
131+
# Next.js build output
132+
.next
133+
out
134+
135+
# Nuxt.js build / generate output
136+
.nuxt
137+
dist
138+
139+
# Gatsby files
140+
.cache/
141+
# Comment in the public line in if your project uses Gatsby and not Next.js
142+
# https://nextjs.org/blog/next-9-1#public-directory-support
143+
# public
144+
145+
# vuepress build output
146+
.vuepress/dist
147+
148+
# Serverless directories
149+
.serverless/
150+
151+
# FuseBox cache
152+
.fusebox/
153+
154+
# DynamoDB Local files
155+
.dynamodb/
156+
157+
# TernJS port file
158+
.tern-port
159+
160+
# Stores VSCode versions used for testing VSCode extensions
161+
.vscode-test
162+
163+
# yarn v2
164+
.yarn/cache
165+
.yarn/unplugged
166+
.yarn/build-state.yml
167+
.yarn/install-state.gz
168+
.pnp.*
169+
170+
### Node Patch ###
171+
# Serverless Webpack directories
172+
.webpack/
173+
174+
### Windows ###
175+
# Windows thumbnail cache files
176+
Thumbs.db
177+
Thumbs.db:encryptable
178+
ehthumbs.db
179+
ehthumbs_vista.db
180+
181+
# Dump file
182+
*.stackdump
183+
184+
# Folder config file
185+
[Dd]esktop.ini
186+
187+
# Recycle Bin used on file shares
188+
$RECYCLE.BIN/
189+
190+
# Windows Installer files
191+
*.cab
192+
*.msi
193+
*.msix
194+
*.msm
195+
*.msp
196+
197+
# Windows shortcuts
198+
*.lnk
199+
200+
### yarn ###
201+
# https://yarnpkg.com/advanced/qa#which-files-should-be-gitignored
202+
203+
.yarn/*
204+
!.yarn/releases
205+
!.yarn/plugins
206+
!.yarn/sdks
207+
!.yarn/versions
208+
209+
# if you are NOT using Zero-installs, then:
210+
# comment the following lines
211+
!.yarn/cache
212+
213+
# and uncomment the following lines
214+
# .pnp.*
215+
216+
# End of https://www.toptal.com/developers/gitignore/api/windows,linux,macos,node,yarn,dotenv

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"arrowParens": "avoid",
3+
"trailingComma": "es5",
4+
"singleQuote": true,
5+
"semi": true
6+
}

.vscode/tasks.json

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "Start (dev)",
8+
"dependsOn": [
9+
"Start server (dev)",
10+
"Start client (dev)"
11+
],
12+
"problemMatcher": []
13+
},
14+
{
15+
"label": "Start server (dev)",
16+
"type": "shell",
17+
"command": "yarn workspace server dev",
18+
"presentation": {
19+
"group": "dev",
20+
"reveal": "always",
21+
"panel": "shared"
22+
},
23+
"problemMatcher": []
24+
},
25+
{
26+
"label": "Start client (dev)",
27+
"type": "shell",
28+
"command": "yarn workspace client start",
29+
"presentation": {
30+
"group": "dev",
31+
"reveal": "always",
32+
"panel": "shared"
33+
},
34+
"problemMatcher": []
35+
},
36+
]
37+
}

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# ChattR
2+
3+
Experimental chat app powered by WebSockets & WebRTC

client/.gitignore

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/react
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=react
4+
5+
### react ###
6+
.DS_*
7+
*.log
8+
logs
9+
**/*.backup.*
10+
**/*.back.*
11+
12+
node_modules
13+
bower_components
14+
15+
*.sublime*
16+
17+
psd
18+
thumb
19+
sketch
20+
21+
# End of https://www.toptal.com/developers/gitignore/api/react

client/README.md

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2+
3+
## Available Scripts
4+
5+
In the project directory, you can run:
6+
7+
### `yarn start`
8+
9+
Runs the app in the development mode.<br />
10+
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11+
12+
The page will reload if you make edits.<br />
13+
You will also see any lint errors in the console.
14+
15+
### `yarn test`
16+
17+
Launches the test runner in the interactive watch mode.<br />
18+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19+
20+
### `yarn build`
21+
22+
Builds the app for production to the `build` folder.<br />
23+
It correctly bundles React in production mode and optimizes the build for the best performance.
24+
25+
The build is minified and the filenames include the hashes.<br />
26+
Your app is ready to be deployed!
27+
28+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29+
30+
### `yarn eject`
31+
32+
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33+
34+
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.
35+
36+
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.
37+
38+
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.
39+
40+
## Learn More
41+
42+
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43+
44+
To learn React, check out the [React documentation](https://reactjs.org/).
45+
46+
### Code Splitting
47+
48+
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49+
50+
### Analyzing the Bundle Size
51+
52+
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53+
54+
### Making a Progressive Web App
55+
56+
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57+
58+
### Advanced Configuration
59+
60+
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61+
62+
### Deployment
63+
64+
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65+
66+
### `yarn build` fails to minify
67+
68+
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

0 commit comments

Comments
 (0)