insidesherpa / shiptivitas-2 Goto Github PK
View Code? Open in Web Editor NEWTask 2 for the Learn how to work at a Y Combinator startup on InsideSherpa
Task 2 for the Learn how to work at a Y Combinator startup on InsideSherpa
unmodified code of the repo gives error when i make the following put request :
curl -X PUT http://localhost:3001/api/v1/clients/1 -H "Content-Type: application/json" -d '{"status":"in-progress", "priority": 6}'
error :
SyntaxError: Unexpected token ' in JSON at position 0 at JSON.parse (<anonymous>) at createStrictSyntaxError (D:\web\shiptivitas-2\node_modules\body-parser\lib\types\json.js:158:10) at parse (D:\web\shiptivitas-2\node_modules\body-parser\lib\types\json.js:83:15) at D:\web\shiptivitas-2\node_modules\body-parser\lib\read.js:121:18 at invokeCallback (D:\web\shiptivitas-2\node_modules\raw-body\index.js:224:16) at done (D:\web\shiptivitas-2\node_modules\raw-body\index.js:213:7) at IncomingMessage.onEnd (D:\web\shiptivitas-2\node_modules\raw-body\index.js:273:7) at IncomingMessage.emit (events.js:327:22) at endReadableNT (internal/streams/readable.js:1327:12) at processTicksAndRejections (internal/process/task_queues.js:80:21)
cant install the dependencies when I ran "npm install" it says they are deprecated and then says error and reverts back, also deleting the node modules file
When I try to run npm start, I get an error says 'Can not find module 'better-sqlite3'. Better-sqlite3 looks empty in node modules.
In the README, it says curl -X PUT http://localhost:3001/api/v1/clients/1 -H "Content-Type: application/json" -d '{"status":"in-progress"}'
should do nothing. Why?
Does it mean that marking a client in-progress
requires a priority compulsorily and the request should return 400 if not provided?
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.