-
Notifications
You must be signed in to change notification settings - Fork 0
/
need this.txt
57 lines (34 loc) · 1.55 KB
/
need this.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
create a react app: npx create-react-app first_react_app or "client"
axios poke mon assignment:
npm i [email protected]
Routing Practivce
'npm react-router-dom'
CSS cool jobs Ui/ux
https://www.frontendmentor.io/home
https://react-bootstrap.github.io/
week 4 day 2
npm i -g nodemon (install once you have it allready)
https://www.postman.com/downloads/
https://fakerjs.dev/guide/
MERN fullstack make your folders
server - This is your backend server / project folder and will hold all server related files
config - will handle the database configuration and connection
controllers - will hold all logic for each model (i.e creating, updating, etc...)
models - will hold all the schemas
routes - will handle all of our routes for each model
server.js - will handle all the server logic with express
Once you have created the server.js file and the folders, open a new terminal window and navigate into your project folder (labeled as server in the image above) and install the server dependencies by running:
create a server folder-
SERVER______
create server.js
npm init -y
npm install mongoose express cors
nodemon server.js (to start server in terminal 1)
echo "node_modules">> .gitignore (too ignore node modeules if wanted
Client
npx create-react-app client (cd client folder)
npm i axios
npm i react-router-dom
npm start (to run client in second terminal)
make sure you intall npm init and mongoose express from server root
Client root folder is the react npm start...open 2 terminals. cd to each directory server /client