-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
37 lines (37 loc) · 2.78 KB
/
package.json
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
{
"name": "amazona",
"type": "module",
"version": "1.0.0",
"description": "1. Introduction to this course 1. what you will build 2. what you will learn 3. who are audiences 2. Install Tools 1. Code Editor 2. Web Browser 3. VS Code Extension 3. Website Template 1. Create amazona folder 2. create template folder 3. create index.html 4. add default HTML code 5. link to style.css 6. create header, main and footer 7. style elements 4. Display Products 1. create products div 2. add product attributes 3. add link, image, name and price 5. Create React App 1. npx create-react-app frontend 2. npm start 3. Remove unused files 4. copy index.html content to App.js 5. copy style.css content to index.css 6. replace class with className 6. Share Code On Github 1. Initialize git repository 2. Commit changes 3. Create github account 4. Create repo on github 5. connect local repo to github repo 6. push changes to github 7. Create Rating and Product Component 1. create components/Rating.js 2. create div.rating 3. style div.rating, span and last span 4. Create Product component 5. Use Rating component 8. Build Product Screen 1. Install react-router-dom 2. Use BrowserRouter and Route for Home Screen 3. Create HomeScreen.js 4. Add product list code there 5. Create ProductScreen.js 6. Add new Route from product details to App.js 7. Create 3 columns for product image, info and action 9. Create Node.JS Server 1. run npm init in root folder 2. Update package.json set type: module 3. Add .js to imports 4. npm install express 5. create server.js 6. add start command as node backend/server.js 7. require express 8. create route for / return backend is ready. 9. move products.js from frontend to backend 10. create route for /api/products 11. return products 12. run npm start",
"main": "index.js",
"scripts": {
"build": "cd frontend && npm install && npm run build",
"start": "nodemon --watch backend --exec node --experimental-modules backend/server.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/SuayMack/ecommerceAmazona.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/SuayMack/ecommerceAmazona/issues"
},
"homepage": "https://github.com/SuayMack/ecommerceAmazona#readme",
"dependencies": {
"bcryptjs": "^2.4.3",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-async-handler": "^1.1.4",
"express-load": "^1.1.16",
"jsonwebtoken": "^8.5.1",
"mongoose": "^5.11.11",
"multer": "^1.4.2",
"nodemon": "^2.0.6"
},
"devDependencies": {
"eslint": "^7.16.0",
"eslint-plugin-react": "^7.22.0"
},
"engines": {"node":"12.4.0", "npm":"6.9.0"}
}