December 2018
Intermediate to advanced
642 pages
15h 5m
English
When you are developing software, you'll obviously work in a different environment than for production; in fact, you could have several environments such as development, testing, preproduction, production, and so on. We'll also do this; let's start by going over some of the configurations we have already seen in this book.
In the Getting a connection section of Chapter 3, Developing with Node, when we created our services, we defined four constants to access the database, as follows:
const DB_HOST = "127.0.0.1";const DB_USER = "fkereki";const DB_PASS = "modernJS!!";const DB_SCHEMA = "world";
In the previous chapter, in the Adding Authentication with JWT section, we had a secret that we used for signing:
const SECRET_JWT_KEY ...
Read now
Unlock full access