mirror of
https://github.com/rjNemo/MERN_sample_app
synced 2026-06-06 00:36:39 +00:00
No description
Bumps [loader-utils](https://github.com/webpack/loader-utils) to 2.0.4 and updates ancestor dependency [react-scripts](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts). These dependencies need to be updated together. Updates `loader-utils` from 1.2.3 to 2.0.4 - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](https://github.com/webpack/loader-utils/compare/v1.2.3...v2.0.4) Updates `react-scripts` from 3.4.1 to 5.0.1 - [Release notes](https://github.com/facebook/create-react-app/releases) - [Changelog](https://github.com/facebook/create-react-app/blob/main/CHANGELOG-3.x.md) - [Commits](https://github.com/facebook/create-react-app/commits/react-scripts@5.0.1/packages/react-scripts) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect - dependency-name: react-scripts 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"
}