mirror of
https://github.com/rjNemo/MERN_sample_app
synced 2026-06-06 08:46:39 +00:00
37 lines
435 B
Markdown
37 lines
435 B
Markdown
# 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
|
|
|
|
```json
|
|
{
|
|
"scripts": {
|
|
"start": "node server.js",
|
|
"server": "nodemon server.js",
|
|
"test": "jest",
|
|
"test:watch": "npm run test -- --watch"
|
|
}
|
|
}
|
|
```
|