snyk-labs / nodejs-goof Goto Github PK
View Code? Open in Web Editor NEWSuper vulnerable todo list application
License: Apache License 2.0
Super vulnerable todo list application
License: Apache License 2.0
Alright guys here is the GitHub Page I create for the open source project.
Helps organized notes and to-do's in a professional way and access them from anywhere.
https://Notion.com is what inspired me to start this project.
Project Link Below
I found that the project has incompatible dependencies. It requires node "6.14.1" and dependencies require node ">=8".
I guess it because the project is old and needs to be updated. You could lock dependencies, so they don't require a higher node version.
I faced two main issues while trying to run this project locally using docker compose during a workshop. The two issues where:
goof
would fail to start complaining about not being able to connect to mysql at localhostTypeError: Busboy is not a constructor
Dockerfile
not to run npm update
anymore.I have opened this #1254 to fix both.
The project/repo does not currently seem to have a license - is this intentional?
while running docker-compose up --build
command, it is showing this error
No response
Connect 500 TypeError: Busboy is not a constructor
Managed to solve it via - npm install [email protected]
It bombs right here:
goof-mongo | {"t":{"$date":"2022-11-30T01:11:58.349+00:00"},"s":"I", "c":"NETWORK", "id":23016, "ctx":"listener","msg":"Waiting for connections","attr":{"port":27017,"ssl":"off"}}
goof |
goof | > [email protected] start /usr/src/goof
goof | > NODE_OPTIONS=--openssl-legacy-provider node app.js
goof |
goof | node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
goof | npm ERR! code ELIFECYCLE
goof | npm ERR! errno 9
goof | npm ERR! [email protected] start: `NODE_OPTIONS=--openssl-legacy-provider node app.js`
goof | npm ERR! Exit status 9
goof | npm ERR!
goof | npm ERR! Failed at the [email protected] start script.
goof | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
goof |
goof | npm ERR! A complete log of this run can be found in:
goof | npm ERR! /root/.npm/_logs/2022-11-30T01_11_58_558Z-debug.log
goof exited with code 9
Just minor cosmetics regarding the naming conventions:
I assume this is meant to be goof-mysql
and not good-mysql
nodejs-goof/docker-compose.yml
Line 20 in f985f27
goof | {"app":{},"services":{},"isLocal":true,"name":"goof","port":6001,"bind":"localhost","urls":["http://localhost:6001"],"url":"http://localhost:6001"}
goof | Using Mongo URI mongodb://goof-mongo/express-todo
goof | /usr/src/goof/node_modules/cli-highlight/node_modules/chalk/source/index.js:103
goof | ...styles,
goof | ^^^
goof |
goof | SyntaxError: Unexpected token ...
goof | at createScript (vm.js:56:10)
goof | at Object.runInThisContext (vm.js:97:10)
goof | at Module._compile (module.js:549:28)
goof | at Object.Module._extensions..js (module.js:586:10)
goof | at Module.load (module.js:494:32)
goof | at tryModuleLoad (module.js:453:12)
goof | at Function.Module._load (module.js:445:3)
goof | at Module.require (module.js:504:17)
goof | at require (internal/module.js:20:19)
goof | at Object. (/usr/src/goof/node_modules/cli-highlight/dist/theme.js:10:28)
goof | at Module._compile (module.js:577:32)
goof | at Object.Module._extensions..js (module.js:586:10)
goof | at Module.load (module.js:494:32)
goof | at tryModuleLoad (module.js:453:12)
goof | at Function.Module._load (module.js:445:3)
goof | at Module.require (module.js:504:17)
goof docker build fails and the container is exited.
santa@roli:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e7a8788d5e4d nodejs-goof_goof "npm start" 7 minutes ago Exited (9) 7 minutes ago goof
86ffaea201b0 mysql:5 "docker-entrypoint.sā¦" 7 minutes ago Up 7 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp goof-mysql
b6ca72bb5cfe mongo "docker-entrypoint.sā¦" 7 minutes ago Up 7 minutes 0.0.0.0:27017->27017/tcp goof-mongo
santa@roli:~$ docker logs goof
[email protected] start /usr/src/goof
NODE_OPTIONS=--openssl-legacy-provider node app.js
node: --openssl-legacy-provider is not allowed in NODE_OPTIONS
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! [email protected] start: NODE_OPTIONS=--openssl-legacy-provider node app.js
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2023-01-03T06_00_22_312Z-debug.log
santa@roli:~$ docker logs /root/.npm/_logs/2023-01-03T06_00_22_312Z-debug.log
Error: No such container: /root/.npm/_logs/2023-01-03T06_00_22_312Z-debug.log
git clone https://github.com/snyk-labs/nodejs-goof.git
cd nodejs-goof
docker-compose up --build
No response
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.