removed nodemon from dependecies
Most devs have Nodemon installed globally on their system, so I removed the dependecy, and when a user types "npm start" on the server app, it will first look for nodemon, and if not found then it will do the standard "node server.js"
This commit is contained in:
39
README.md
39
README.md
@@ -18,11 +18,10 @@ Here is a [demonstration video](https://youtu.be/e81rqD94QtM) of the following s
|
|||||||
|
|
||||||
### STEP 1:
|
### STEP 1:
|
||||||
|
|
||||||
Click ["Use this template"](https://github.com/belferink1996/MERN-template/generate) to generate a new repository.<br />
|
Click ["Use this template"](https://github.com/belferink1996/MERN-template/generate) to generate a
|
||||||
Then open your terminal and clone your repository:
|
new repository.<br /> Then open your terminal and clone your repository:
|
||||||
|
|
||||||
> cd ~/Desktop <br />
|
> cd ~/Desktop <br /> git clone https://github.com/[your-user-name]/[your-repo-name].git
|
||||||
> git clone https://github.com/[your-user-name]/[your-repo-name].git
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
@@ -30,9 +29,7 @@ Then open your terminal and clone your repository:
|
|||||||
|
|
||||||
Go to your client folder (frontend), and set your workspace:
|
Go to your client folder (frontend), and set your workspace:
|
||||||
|
|
||||||
> cd ~/Desktop/[your-repo-name]/client <br />
|
> cd ~/Desktop/[your-repo-name]/client <br /> npm install <br /> npm start
|
||||||
> npm install <br />
|
|
||||||
> npm start
|
|
||||||
|
|
||||||
```
|
```
|
||||||
We're unable to detect target browsers.
|
We're unable to detect target browsers.
|
||||||
@@ -45,15 +42,12 @@ Would you like to add the defaults to your package.json? (Y/n)
|
|||||||
|
|
||||||
### STEP 3:
|
### STEP 3:
|
||||||
|
|
||||||
Prepare your MongoDB database ([atlas](https://www.mongodb.com/cloud/atlas), [community](<https://github.com/belferink1996/MERN-template/wiki/Install-MongoDB-Community-Server-(MacOS)>)),<br />
|
Prepare your MongoDB database ([atlas](https://www.mongodb.com/cloud/atlas),
|
||||||
|
[community](<https://github.com/belferink1996/MERN-template/wiki/Install-MongoDB-Community-Server-(MacOS)>)),<br />
|
||||||
then go to your server folder (backend), and set your workspace:
|
then go to your server folder (backend), and set your workspace:
|
||||||
|
|
||||||
> cd ~/Desktop/[your-repo-name]/server <br />
|
> cd ~/Desktop/[your-repo-name]/server <br /> npm install <br /> Set your database within
|
||||||
> npm install <br />
|
> `index.js`, then start server: npm start
|
||||||
|
|
||||||
Set your database within `index.js`, then start server:
|
|
||||||
|
|
||||||
> npm start
|
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
@@ -66,15 +60,14 @@ Set your database within `index.js`, then start server:
|
|||||||
|
|
||||||
###### Client:
|
###### Client:
|
||||||
|
|
||||||
> axios: ^0.21.0 ---> Use the API<br />
|
> axios: ^0.21.0 ---> Use the API<br /> react: ^17.0.1
|
||||||
> react: ^17.0.1 ---> UI framework<br />
|
> ---> UI framework<br /> react-dom: ^17.0.1
|
||||||
> react-dom: ^17.0.1 ---> UI framework<br />
|
> ---> UI framework<br /> react-scripts: ^4.0.1
|
||||||
> react-scripts: ^4.0.1 ---> Quickly launch local service
|
> ---> Quickly launch local service
|
||||||
|
|
||||||
###### Server:
|
###### Server:
|
||||||
|
|
||||||
> cors: ^2.8.5 ---> Enable HTTP requests<br/>
|
> cors: ^2.8.5 ---> Enable HTTP requests<br/> dotenv: ^8.2.0
|
||||||
> dotenv: ^8.2.0 ---> Secure sensitive information<br />
|
> ---> Secure sensitive information<br /> express: ^4.17.1
|
||||||
> express: ^4.17.1 ---> Server app<br />
|
> ---> Server app<br /> mongoose: ^5.11.8
|
||||||
> mongoose: ^5.11.8 ---> MongoDB database<br />
|
> ---> MongoDB database
|
||||||
> nodemon: ^2.0.6 ---> Improved local service
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "nodemon server.js"
|
"start": "nodemon server.js||node server.js"
|
||||||
},
|
},
|
||||||
"author": "Ben Elferink",
|
"author": "Ben Elferink",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
@@ -12,7 +12,6 @@
|
|||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"dotenv": "^8.2.0",
|
"dotenv": "^8.2.0",
|
||||||
"express": "^4.17.1",
|
"express": "^4.17.1",
|
||||||
"mongoose": "^5.11.8",
|
"mongoose": "^5.11.8"
|
||||||
"nodemon": "^2.0.6"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user