Database, Keys and Stream Tips
This chapter continues the previous chapter’s theme of better code organization in Express.js apps. The chapter provides tips on how to connect to a database from another module, access keys and passwords that ought to remain secret, and stream data.
Using Databases in Modules
Before I show you how to approach accessing a database connection from another module, which might be needed if you abstracted routes into separate app.js/server.js files, let’s ...