Skip to content

Commit

Permalink
Added React App proxy.
Browse files Browse the repository at this point in the history
Setup basic application skeleton.
Oauth2 auth flow.
  • Loading branch information
JordWyatt committed Jul 21, 2019
1 parent 19d8a90 commit 5f42812
Show file tree
Hide file tree
Showing 11 changed files with 424 additions and 74 deletions.
172 changes: 172 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

62 changes: 33 additions & 29 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
{
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-scripts": "3.0.1"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"query-string": "^6.8.1",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-router-dom": "^5.0.1",
"react-scripts": "3.0.1",
"spotify-web-api-node": "^4.0.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"proxy": "http://localhost:3333",
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
42 changes: 19 additions & 23 deletions client/src/App.js
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
import React from 'react';
import logo from './logo.svg';
import './App.css';
import React, { Component } from "react";
import { Route, Switch } from "react-router-dom";
import Home from "./components/Home/Home";
import "./App.css";

function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div>
);
class App extends Component {
render() {
const App = () => (
<div>
<Switch>
<Route exact path="/" component={Home} />
</Switch>
</div>
);
return (
<Switch>
<App />
</Switch>
);
}
}

export default App;
Loading

0 comments on commit 5f42812

Please sign in to comment.