added cors
Showing
with
143 additions
and
29 deletions
package-lock.json
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
package.json
0 → 100644
{ | ||
"name": "spring-data-rest-and-reactjs", | ||
"version": "0.1.0", | ||
"description": "Demo of ReactJS + Spring Data REST", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:spring-guides/tut-react-and-spring-data-rest.git" | ||
}, | ||
"keywords": [ | ||
"rest", | ||
"hateoas", | ||
"spring", | ||
"data", | ||
"react" | ||
], | ||
"author": "Greg L. Turnquist", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/spring-guides/tut-react-and-spring-data-rest/issues" | ||
}, | ||
"homepage": "https://github.com/spring-guides/tut-react-and-spring-data-rest", | ||
"dependencies": { | ||
"react": "^16.5.2", | ||
"react-dom": "^16.5.2", | ||
"rest": "^1.3.1" | ||
}, | ||
"scripts": { | ||
"watch": "webpack --watch -d" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-loader": "^8.0.2", | ||
"webpack": "^4.19.1", | ||
"webpack-cli": "^3.1.0" | ||
} | ||
} |
src/main/resources/static/built/bundle.js
0 → 100644
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
{ | ||
"name": "spring-data-rest-and-reactjs", | ||
"name": "react-shopping-cart", | ||
"version": "0.1.0", | ||
"description": "Demo of ReactJS + Spring Data REST", | ||
"description": "Shopping cart", | ||
"private": true, | ||
"dependencies": { | ||
"axios": "^0.18.0", | ||
"cors": "^2.8.5", | ||
"express": "^4.16.4", | ||
"node-sass-chokidar": "^1.3.4", | ||
"react": "^16.6.1", | ||
"react-dom": "^16.6.1", | ||
"react-redux": "^5.1.1", | ||
"react-scripts": "^1.1.5", | ||
"redux": "^3.7.2", | ||
"redux-thunk": "^2.3.0" | ||
}, | ||
"scripts": { | ||
"build-css": "node-sass-chokidar src/ -o src/", | ||
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --watch --recursive", | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject", | ||
"server": "nodemon server.js" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:spring-guides/tut-react-and-spring-data-rest.git" | ||
"url": "git+https://github.com/jeffersonRibeiro/react-shopping-cart.git" | ||
}, | ||
"keywords": [ | ||
"rest", | ||
"hateoas", | ||
"spring", | ||
"data", | ||
"react" | ||
"React", | ||
"eCommerce" | ||
], | ||
"author": "Greg L. Turnquist", | ||
"license": "Apache-2.0", | ||
"bugs": { | ||
"url": "https://github.com/spring-guides/tut-react-and-spring-data-rest/issues" | ||
}, | ||
"homepage": "https://github.com/spring-guides/tut-react-and-spring-data-rest", | ||
"dependencies": { | ||
"react": "^16.5.2", | ||
"react-dom": "^16.5.2", | ||
"rest": "^1.3.1" | ||
"author": "Jefferson Ribeiro", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"nodemon": "^1.18.6" | ||
}, | ||
"scripts": { | ||
"watch": "webpack --watch -d" | ||
"bugs": { | ||
"url": "https://github.com/jeffersonRibeiro/react-shopping-cart/issues" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.1.0", | ||
"@babel/preset-env": "^7.1.0", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-loader": "^8.0.2", | ||
"webpack": "^4.19.1", | ||
"webpack-cli": "^3.1.0" | ||
} | ||
"homepage": "https://react-shopping-cart-67954.firebaseapp.com/" | ||
} |
start_server.sh
0 → 100644
webpack.config.js
0 → 100644
Please
register
or
sign in
to comment