Link to Bryan Gilbraith's Tutorial
MERN: a software stack of free and open-source JS software for web development consisting of MongoDB, Express.js, React.js, Node.js.
Built by adding functionality to Facebook Comment Box with the MERN Stack.
- yarn (package manager, can also use npm)
- create-react-app (npm package: creating boilerplate React app)
- express (server framework)
- body-parser (parses body from network requests)
- nodemon (monitors changes in server and restarts when sees change)
- morgan (allows logging to debug network requests)
- mongoose (allows smoother interaction with mongodb)
- concurrently (allows frontend web app and backend server to run simultaneously)
- babel-cli, babel-preset-es2015, babel-preset-stage-0 (allows usage of new JS syntax)
- react-markdown (converts markdown into text)
- whatwg-fetch (polyfill for the window.fetch object that fetches data from the browser)
- prop-type (validates type of component)
- es-lint (debugging)
- MLab (database provider for MongoDB)
- Postman (to validate API requests)
To run the app, navigate to your terminal and type:
$ cd purple-project1/
$ yarn
$ cd client
$ yarn
$ cd ..
$ yarn start:dev
This will start both the React web app and backend server simultaneously and will automatically open the webapp on your browser.
For the curious folk, if you want to only start the backend server: $ yarn start:server
, and if you only want to start the React app: $ yarn start:client
.