mirror of
https://github.com/rjNemo/MERN_sample_app
synced 2026-06-06 00:36:39 +00:00
No description
Bumps [@grpc/grpc-js](https://github.com/grpc/grpc-node) to 1.7.3 and updates ancestor dependency [firebase](https://github.com/firebase/firebase-js-sdk). These dependencies need to be updated together. Updates `@grpc/grpc-js` from 0.8.1 to 1.7.3 - [Release notes](https://github.com/grpc/grpc-node/releases) - [Commits](https://github.com/grpc/grpc-node/compare/@grpc/grpc-js@0.8.1...@grpc/grpc-js@1.7.3) Updates `firebase` from 7.14.1 to 7.24.0 - [Release notes](https://github.com/firebase/firebase-js-sdk/releases) - [Changelog](https://github.com/firebase/firebase-js-sdk/blob/master/CHANGELOG.md) - [Commits](https://github.com/firebase/firebase-js-sdk/compare/firebase@7.14.1...firebase@7.24.0) --- updated-dependencies: - dependency-name: "@grpc/grpc-js" dependency-type: indirect - dependency-name: firebase dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> |
||
|---|---|---|
| client | ||
| constants | ||
| middlewares/auth | ||
| models | ||
| routes/api | ||
| services/auth | ||
| .gitignore | ||
| .gitpod.yml | ||
| package-lock.json | ||
| package.json | ||
| Procfile | ||
| README.md | ||
| server.js | ||
| TODO.md | ||
MERN Stack Demo
Skeleton MERN Stack app with Redux and Firebase.
Prequisites
- NodeJs
- npm
Backend configuration
npm init -y
install dependencies
npm i express mongoose concurrently firebase-admin helmet moment
install nodemon for server hot reload and jest for testing
npm i -D nodemon jest
Update package.json
{
"type": "module",
"scripts": {
"start": "node --experimental-modules --experimental-json-modules server.js",
"server": "nodemon --experimental-json-modules server.js",
"client": "npm start --prefix client",
"client-install": "npm install --prefix client",
"dev": "concurrently \"npm run server\" \"npm run client\"",
"heroku-postbuild": "NPM_CONFIG_PRODUCTION=false npm install --prefix client && npm run build --prefix client",
"test": "jest",
"test:watch": "npm run test -- --watch"
}
}
Frontend configuration
npx create-react-app client --template redux
Install dependencies
npm i axios firebase prop-types react-router-dom
Update package.json
{
"proxy": "http://localhost:5000"
}