diff --git a/README.md b/README.md index cfb0762..331c814 100644 --- a/README.md +++ b/README.md @@ -27,27 +27,17 @@ new repository.
Then open your terminal and clone your repository: ### STEP 2: -Go to your client folder (frontend), and set your workspace: +Go to your repository's folder, and install all dependecies: -> cd ~/Desktop/[your-repo-name]/client
npm install
npm start - -``` -We're unable to detect target browsers. -Would you like to add the defaults to your package.json? (Y/n) -``` - -> Y +> cd ~/Desktop/[your-repo-name]
npm install
### STEP 3: Prepare your MongoDB database ([atlas](https://www.mongodb.com/cloud/atlas), -[community]()),
-then go to your server folder (backend), and set your workspace: - -> cd ~/Desktop/[your-repo-name]/server
npm install
Set your database within -> `index.js`, then start server: npm start +[community]()).
+Then go to your server folder (backend), and set your database within `server.js`,
diff --git a/client/package.json b/client/package.json index 693abed..1763e3f 100644 --- a/client/package.json +++ b/client/package.json @@ -1,11 +1,10 @@ { "name": "client", - "version": "0.1.0", + "version": "1.0.0", "main": "index.js", "scripts": { "start": "react-scripts start" }, - "author": "Ben Elferink", "license": "ISC", "dependencies": { "axios": "^0.21.0", diff --git a/package.json b/package.json new file mode 100644 index 0000000..db48f9b --- /dev/null +++ b/package.json @@ -0,0 +1,9 @@ +{ + "name": "mern-application", + "version": "0.1.0", + "scripts": { + "install": "cd ./server && npm install && cd ./../client && npm install" + }, + "author": "Ben Elferink", + "license": "ISC" +} diff --git a/server/package.json b/server/package.json index 5b7e0a7..8b7509c 100644 --- a/server/package.json +++ b/server/package.json @@ -1,12 +1,11 @@ { "name": "server", - "version": "0.1.0", + "version": "1.0.0", "main": "server.js", "type": "module", "scripts": { - "start": "nodemon server.js||node server.js" + "start": "nodemon server.js || node server.js" }, - "author": "Ben Elferink", "license": "ISC", "dependencies": { "cors": "^2.8.5",