Skip to content

vasansr/pro-mern-stack

Repository files navigation

Deprecation notice

This github repository, and also the book that it is meant to accompany, have now been superceded by the second edition of the book and a corresponding new repository: pro-mern-stack-2. The repository is no longer being maintained, but remains in GitHub as an archive.

Pro MERN Stack

This is the complete source code compilation of all code listings in the book Pro MERN Stack by Vasan Subramanian, published by Apress. The book can be purchased at any of these websites:

Each section in the book ends with a working application, which corresponds to a branch in this repository. For each section, you can browse the complete source, or look at the differences from the previous section/step using the appropriate link against each section, in this page.

Demo

There is no online demo, so if you want to take a peek into how the app will look like once it's done till the end of the book, you will need to do the following:

  1. Install Node.js (with npm) and MongoDB
  2. Clone this repository
  3. Run npm install in the project directory
  4. Run npm run compile, followed by npm run compile-server to generate the bundles
  5. Run npm start to start the server on port 3000
  6. (Optionally) Run mongo scripts/init.mongo.js to seed the database with some initial data

The above requires that you know, or able to find out how to install Node.js and MongoDB.

Chapter 1: Introduction

There are no code listings in this chapter.

Errata / Issues relating to Chapter 2

Chapter 2: Hello World

Errata / Issues relating to Chapter 2

Chapter 3: React Components

Errata / Issues relating to Chapter 3

Chapter 4: React State

Errata / Issues relating to Chapter 4

Chapter 5: Express REST APIs

Errata / Issues relating to Chapter 5

Chapter 6: Using MongoDB

Errata / Issues relating to Chapter 6

Chapter 7: Modularization and Webpack

Errata / Issues relating to Chapter 7

Chapter 8: React Router

Errata / Issues relating to Chapter 8

Chapter 9: Forms

Errata / Issues relating to Chapter 9

Chapter 10: Bootstrap

Errata / Issues relating to Chapter 10

Chapter 11: Server Rendering

Errata / Issues relating to Chapter 11

Chapter 12: Advanced Features

Errata / Issues relating to Chapter 12

Chapter 13: Looking Ahead

There are no code listings in this chapter.

Errata / Issues relating to Chapter 13