adrianboratyn / kahoot-js Goto Github PK
View Code? Open in Web Editor NEWA simple Kahoot clone.
A simple Kahoot clone.
[sysadmin@srvens01pro server]$ npm run devStartAuth
[email protected] devStartAuth /kahoot/kahoot-js/server
nodemon authServer.js
[nodemon] 2.0.13
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node authServer.js
Auth Server started on port undefined
(node:432) UnhandledPromiseRejectionWarning: MongooseError: The uri
parameter to openUri()
must be a string, got "undefined". Make sure the first parameter to mongoose.connect()
or mongoose.createConnection()
is a string.
at NativeConnection.Connection.openUri (/kahoot/kahoot-js/server/node_modules/mongoose/lib/connection.js:684:11)
at /kahoot/kahoot-js/server/node_modules/mongoose/lib/index.js:329:10
at /kahoot/kahoot-js/server/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5
at new Promise ()
at promiseOrCallback (/kahoot/kahoot-js/server/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (/kahoot/kahoot-js/server/node_modules/mongoose/lib/index.js:1150:10)
at Mongoose.connect (/kahoot/kahoot-js/server/node_modules/mongoose/lib/index.js:328:20)
at Object. (/kahoot/kahoot-js/server/authServer.js:9:10)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
(node:432) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:432) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
When run npm start inside of client:
Compiled with warnings.
src/components/Game/HostScreen/HostScreen.js
Line 8:3: 'getLeaderboard' is defined but never used no-unused-vars
Line 72:6: React Hook useEffect has a missing dependency: 'updateLeaderboard'. Either include it or remove the dependency array react-hooks/exhaustive-deps
src/components/Game/PlayerScreen/PlayerScreen.js
Line 145:6: React Hook useEffect has a missing dependency: 'sendAnswer'. Either include it or remove the dependency array react-hooks/exhaustive-deps
src/components/MyQuizes/MyQuizes.js
Line 28:6: React Hook useEffect has a missing dependency: 'user.result._id'. Either include it or remove the dependency array react-hooks/exhaustive-deps
src/components/Navbar/Navbar.js
Line 35:6: React Hook useEffect has missing dependencies: 'logout' and 'user?.accessToken'. Either include them or remove the dependency array react-hooks/exhaustive-deps
src/components/QuizCreator/QuizCreator.js
Line 55:6: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
src/components/QuizDetails/QuizDetails.js
Line 26:6: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Line 34:6: React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array react-hooks/exhaustive-deps
Search for the keywords to learn more about each warning.
To ignore, add // eslint-disable-next-line to the line before.
[sysadmin@srvens01pro server]$ npm run devStart
[email protected] devStart /kahoot/kahoot-js/server
nodemon server.js
[nodemon] 2.0.13
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node server.js
Server started on port undefined
(node:32728) UnhandledPromiseRejectionWarning: MongooseError: The uri
parameter to openUri()
must be a string, got "undefined". Make sure the first parameter to mongoose.connect()
or mongoose.createConnection()
is a string.
at NativeConnection.Connection.openUri (/kahoot/kahoot-js/server/node_modules/mongoose/lib/connection.js:684:11)
at /kahoot/kahoot-js/server/node_modules/mongoose/lib/index.js:329:10
at /kahoot/kahoot-js/server/node_modules/mongoose/lib/helpers/promiseOrCallback.js:32:5
at new Promise ()
at promiseOrCallback (/kahoot/kahoot-js/server/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:10)
at Mongoose._promiseOrCallback (/kahoot/kahoot-js/server/node_modules/mongoose/lib/index.js:1150:10)
at Mongoose.connect (/kahoot/kahoot-js/server/node_modules/mongoose/lib/index.js:328:20)
at Object. (/kahoot/kahoot-js/server/server.js:20:10)
at Module._compile (internal/modules/cjs/loader.js:1137:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:10)
(node:32728) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:32728) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
What version of npm and node do you use?
This are my versions:
[sysadmin@srvens01pro kahoot-js]$ node -v
v12.18.4
[sysadmin@srvens01pro kahoot-js]$ npm -v
6.14.6
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.