nvm install 10
nvm alias default 10
node --version
npm --version
npm install -g npm@6
npm init
npm install express
npm uninstall express
npm install express@4
npm install --save-dev @babel/core@7 @babel/cli@7
node_modules/.bin/babel --version
npx babel --version
npm install --save-dev @babel/preset-react@7
npx babel src --presets @babel/react --out-dir public
npm install graphql@0 apollo-server-express@2
curl "http://localhost:3000/graphql?query=query+\{+about+\}"
npm install mongodb@3
mongod (To start up mongo server)
mongo customers --eval "db.customers.remove({})" (clear the memory)
node scripts/trymongo.js (check the test)
mongo customers scripts/init.mongo.js
npm install nodemon@1
npm start(open in browser)
click into http://localhost:3000
click into http://localhost:3000/graphql