Express.js

Migraine Tracker – Create Frontend

Firstly, I use create-react-app to create my project files.  But then I’ll delete everything in src folder and start from scratch to get the things I want to have in it. In preparation for some packages I’ll need later on, I “yarn add” (same as “npm install”, using yarn the following packages: redux, redux-promise, react-redux, and […]

Crypto-Tracker Project v. 2.0

I have just finished v. 2.0 of CryptoTracker.  I have the backend server done, and putting the finishing touches on the front-end.  Most of the functionality is there, but I’m still working on formatting. On the home page, I have a chart and graphs that rely on an api call to cryptocompare.com.  Crypto price charting […]

Express Router – mergeParams

I spent the last two days trying to figure out why I couldn’t access my req.params in my Express.js router middleware.  I finally figured it out! const router = express.Router({ mergeParams: true }); I needed to add { mergeParams: true } when I call the Router.