Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualize the polygons #68

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 31 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,38 @@ services:
- 6001:6000
depends_on:
- yaba_api

yaba_visualization:
build: ./visualization
networks:
- bety
volumes:
- './visualization:/code'
- '/code/node_modules'
ports:
- 80:8080
depends_on:
- postgres
restart: unless-stopped

yaba_interface:
build: ./interface
networks:
- bety
volumes:
- './interface:/code'
- '/code/node_modules'
ports:
- 3001:3000
environment:
- CHOKIDAR_USEPOLLING=true
depends_on:
- yaba_client
- yaba_visualization
stdin_open: true

volumes:
postgres:

networks:
bety:



bety:
10 changes: 6 additions & 4 deletions interface/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import Homepage from './components/homepage';
import Upload1 from './components/upload1';
import Upload2 from './components/upload2';
import Validation from './components/validation';
import ShapeView from './components/shape-visual'
import Visual from './components/data-visual';
import CultivarsView from './components/cultivars-visual'
import ExperimentsView from './components/experiments-visual'
import TreatmentsView from './components/treatments-visual'
import Successpage from './components/success';
import Errorpage from './components/error'

Expand Down Expand Up @@ -38,8 +39,9 @@ class App extends Component {
<Route path="/upload1" component={()=> <Upload1 getFiles={this.getFiles}/>} exact/>
<Route path="/upload2" component={()=> <Upload2 getFiles={this.getFiles}/>} exact/>
<Route path="/validate" component={()=> <Validation fileList={this.state}/>} exact/>
<Route path="/map" component={()=> <ShapeView fileList={this.state}/>} exact/>
<Route path="/visual" component={()=> <Visual fileList={this.state}/>} exact/>
<Route path="/cmap" component={()=> <CultivarsView fileList={this.state}/>} exact/>
<Route path="/emap" component={()=> <ExperimentsView fileList={this.state}/>} exact/>
<Route path="/tmap" component={()=> <TreatmentsView fileList={this.state}/>} exact/>
<Route path="/success" component={Successpage} exact/>
<Route path="/error" component={Errorpage} exact/>
</Switch>
Expand Down
9 changes: 0 additions & 9 deletions interface/src/App.test.js

This file was deleted.

Loading