Skip to content

Commit cebae79

Browse files
committed
add dotenv
1 parent 5073724 commit cebae79

File tree

14 files changed

+154
-210
lines changed

14 files changed

+154
-210
lines changed

code2face/README.md

Lines changed: 8 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,15 @@
1-
# Getting Started with Create React App
1+
# Welcome to Code2Face
22

3-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
Code2Face is a web platform specifically designed for conducting Online Coding interviews. Interviewers can start a new session call and share the code of the session with the interviewee. The interviewee then uses this session code to join the room where the interviewer is present.
44

5-
## Available Scripts
5+
## Features
66

7-
In the project directory, you can run:
7+
- collaborative code editor: which can be used by the student to code and the interviewer to give questions
88

9-
### `npm start`
9+
- there is also video monitoring functionality for the student , when the student starts their video the head movements of the studnet will be tracked and notified. If the the students moves after a warning the session can ended!
1010

11-
Runs the app in the development mode.\
12-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
11+
- there will be a chat functionality for communication
1312

14-
The page will reload when you make changes.\
15-
You may also see any lint errors in the console.
13+
### future scope
1614

17-
### `npm test`
18-
19-
Launches the test runner in the interactive watch mode.\
20-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21-
22-
### `npm run 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-
### `npm run 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/).
47-
48-
### Code Splitting
49-
50-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51-
52-
### Analyzing the Bundle Size
53-
54-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55-
56-
### Making a Progressive Web App
57-
58-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59-
60-
### Advanced Configuration
61-
62-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63-
64-
### Deployment
65-
66-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67-
68-
### `npm run build` fails to minify
69-
70-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
15+
- add functionality to help the interviewer conduct consecutive interviews and store the students score

code2face/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"bootstrap": "^5.2.3",
2525
"codemirror": "^6.0.1",
2626
"copy-to-clipboard": "^3.3.3",
27+
"dotenv": "^16.1.4",
2728
"face-api.js": "^0.22.2",
2829
"react": "^18.2.0",
2930
"react-bootstrap": "^2.7.4",

code2face/src/Actions.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ const ACTIONS = {
22
JOIN: 'join',
33
JOINED: 'joined',
44
DISCONNECTED: 'disconnected',
5-
V_ACEEPT: 'video-accept',
6-
V_CALL: 'v-call',
75
CODE_CHANGE: 'code-change',
86
SYNC_CODE: 'sync-code',
97
SEND_STREAM: 'send-stream',

code2face/src/App.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ a{
5353

5454
/* error page */
5555
.errorpage{
56-
margin: 3em;
56+
margin: auto;
57+
margin-top: 3em;
58+
text-align: center;
5759
}
5860

5961
.errorpage span {
62+
margin: auto;
6063
font-size: 24px;
6164
color: rgb(219, 39, 39);
6265
}
@@ -72,7 +75,8 @@ a{
7275
}
7376

7477
.vcont{
75-
margin: auto;
78+
margin: auto ;
79+
/* margin-right: 10px; */
7680
display: flex;
7781
flex-direction: column;
7882
flex-wrap: wrap;
@@ -96,4 +100,6 @@ video {
96100
/* background-color: antiquewhite; */
97101
width:50vw;
98102
height: 80vh;
103+
margin: auto;
104+
margin-right: 0 !important;
99105
}

code2face/src/Context.js

Lines changed: 0 additions & 110 deletions
This file was deleted.

code2face/src/components/chat.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React, {useState} from 'react'
2+
import { Form, Button } from 'react-bootstrap'
3+
import toast from 'react-hot-toast'
4+
5+
import "../styles/chat.css"
6+
7+
const Chat = () => {
8+
9+
const [msg, setmsg] = useState('message')
10+
11+
const handleChange = (e) => {
12+
setmsg(e.target.value)
13+
}
14+
15+
return (
16+
<div className='chatCont mt5'>
17+
<div className='chatBox'>
18+
<div className='scroller'>
19+
20+
</div>
21+
<div className='minp'>
22+
<Form>
23+
<Form.Control
24+
type="text"
25+
placeholder="Enter message"
26+
name="msg"
27+
onChange={handleChange}
28+
value={msg}
29+
className='finp'
30+
/>
31+
<Button className='finp'> Send</Button>
32+
</Form>
33+
</div>
34+
</div>
35+
</div>
36+
)
37+
}
38+
39+
export default Chat

code2face/src/components/chatGrid.js

Whitespace-only changes.

code2face/src/components/editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, {useEffect, useState, useRef, useMemo} from 'react'
22
import { useLocation } from 'react-router-dom';
33
// codemirror components
4-
import { UseCodeMirror, useCodeMirror } from '@uiw/react-codemirror';
4+
import { useCodeMirror } from '@uiw/react-codemirror';
55

66
// import languages
77
import { javascript } from '@codemirror/lang-javascript';

code2face/src/components/videoGrid.js

Whitespace-only changes.

code2face/src/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)