a guest Sep 20th, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  2. Which database tables are created in the migrations?
  3. >> user, language, word
  4. What are the endpoints for user registration, login and refresh?
  5. >> /api/user and api/auth
  6. What endpoints have been implemented in the language router?
  7. >> /api/language
  8. What is the async and await syntax for?
  9. >> asynchronous calls to the database for information
  10. Which endpoints need implementing in the language router?
  11. >> .get and .post
  12. How does the GET /api/language endpoint decide which language to respond with?
  13. >> uses getUsersLanguage service to check database
  14. In the UserService.populateUserWords method, what is db.transaction?
  15. >> Transactions are a fundamental concept of all database systems. The essential point of a transaction is that it bundles multiple steps into a single, all-or-nothing operation. The intermediate states between the steps are not visible to other concurrent transactions, and if some failure occurs that prevents the transaction from completing, then none of the steps affect the database at all.
  16. What is SERIAL in the create migration files?
  17. >> Creates a sequence
  18. What is setval in the seed file?
  19. >> Set sequence's current value
  22. Which routes are already set up and what are their paths?
  23. >> DashboardRoute('/'), LearningRoute ('/learn'), RegistrationRoute ('/register'), LoginRoute ('/login'), NotFoundRoute('/any')
  24. What is the concern of the AuthApiService object?
  25. >>  Creating users, creating tokens, and refreshing tokens
  26. What is the concern of the UserContext?
  27. >> refreshing tokens, idle logout, logout
  28. Does the PrivateRoute make use of the UserContext?
  29. >> Yes, uses user ID and user idle
  30. What does the /cypress/integration/day-0.1-purpose.spec.js file test?
  31. >> (1) Visit to '/', (2) Get h1, (3) h1 contains "Spaced Repetition", (4) GET p, (5) p contains "Practice learning a language with the spaced reptition revision technique" (spelled incorrectly, repetition not reptition)
  32. Which elements on the page are being checked in and what for?
  33. >> h1, p
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand