No description
Find a file
2020-04-23 11:52:16 +02:00
client add and delete data from db 2020-04-23 11:52:16 +02:00
config creates react + redux frontend and express + mongodb backend 2020-04-23 10:44:49 +02:00
models creates react + redux frontend and express + mongodb backend 2020-04-23 10:44:49 +02:00
routes/api creates react + redux frontend and express + mongodb backend 2020-04-23 10:44:49 +02:00
.gitignore creates react + redux frontend and express + mongodb backend 2020-04-23 10:44:49 +02:00
package-lock.json retrieve data from db 2020-04-23 11:19:47 +02:00
package.json retrieve data from db 2020-04-23 11:19:47 +02:00
README.md creates react + redux frontend and express + mongodb backend 2020-04-23 10:44:49 +02:00
server.js creates react + redux frontend and express + mongodb backend 2020-04-23 10:44:49 +02:00

MERN Stack Demo

Prequisites

  • NodeJs
  • npm

Installation

npm init -y

install dependencies

npm i express mongoose concurrently

install nodemon for server hot reload and jest for testing

npm i -D nodemon jest

Create npm scripts

{
  "scripts": {
    "start": "node server.js",
    "server": "nodemon server.js",
    "test": "jest",
    "test:watch": "npm run test -- --watch"
  }
}