cosmos is a space app. and it's really, really busted. please, debug and repair it into a working application!
cosmos is supposed help register cosmonauts for their upcoming space travels.
cosmos:
- receives requests to go to space
- sees what shuttles are available
- selects a shuttle
- adds a cosmonaut to a shuttle for departure
- updates the shuttle data
console.log
s an invitation with shuttle depature information to the cosmonaut
lots of people want to go to space, but it is not working!
- install nvm
nvm use
npm install
node src/bin.js
start a debug session using node debug ...
or, use your editor's preferred debug scheme using --inspect/--inspect-brk
for the keeper of secret knowledge, get the decrypt key from the responsible party, then run npm run decrypt-guide
(or yarn decrypt-guide
) to see the problems/solutions in plaintext.
you will need to have gpg installed on your computer (e.g. brew install gnupg
).
to save any changes, run npm run encrypt-guide
(or yarn encrypt-guide
) and commit the encrypted file.