An open API service indexing awesome lists of open source software.

https://github.com/codeadamca/react-mern

A basic example of a MERN stack setup.
https://github.com/codeadamca/react-mern

expressjs json mern nodejs reactjs

Last synced: 24 days ago
JSON representation

A basic example of a MERN stack setup.

Awesome Lists containing this project

README

          

# A Basic Example of a Web Page using a MERN Stack

A basic example of a MERN stack setup. This code includes a small React app that displays a list of members retrieved from an API nuilt using Node.js, Express, and MongoDB. The API coe is available in the [nodejs-api](https://github.com/codeadamca/nodejs-api) repo.

## Steps

Before setting up this code, follow the instructions in the [nodejs-api](https://github.com/codeadamca/nodejs-api) repo and then follow these steps:

If you haven't already, start the Node.js members API. Visit tThe URL `http://localhost:4000/members` and it should now display a JSON list of members.

Next clone this repo, start the React app, and visit the URL `http://localhost:3000/`. You should see a list of members from the Node.js API in a basic unordered list.

> Full tutorial URL:
> https://codeadam.ca/learning/react-mern.html

***

## Repo Resources

* [Visual Studio Code](https://code.visualstudio.com/) or [Brackets](http://brackets.io/) (or any code editor)
* [React.js](https://reactjs.org/)