Skip to content

Available Scripts

  1. Start the API in production env, without nodemon.
Terminal window
npm start
  1. Start the API in development env, with nodemon.
Terminal window
npm run dev
  1. Run all tests.
Terminal window
npm test
  1. Lint all files and check if there are any issues, with ESLint.
Terminal window
npm run lint
  1. Fix all ESLint issues then format the files with Prettier.
Terminal window
npm run prettier
  1. Retrieve all information needed for the API via Wikipedia directly from its API.
Terminal window
npm run retrieveData
  1. Save all dinosaur information to your MongoDB database.
Terminal window
npm run postData
  1. Create test coverage shields badges for README using istanbul-badges-readme.
Terminal window
npm run make-badges