Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
chialuka committed May 5, 2019
1 parent 2918eb1 commit fdd7eff
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 53 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
This project is a simple clone of popular project management site, Trello. It was built with Node.js, GraphQL and React.js. It uses a MongoDB Database.

It is still a work in progress and changes will be made from time to time. Please feel free to contribute and add suggestions. They are both welcome and anticipated.

###Author
Chukwualuka Chiama

###License
44 changes: 0 additions & 44 deletions client/README.md

This file was deleted.

15 changes: 8 additions & 7 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,22 @@ import List from './list';

class App extends Component {
state = {
dragging: undefined
};

changeCardId = result => {
console.log(result);
dragging: undefined,
dragInfo: []
};

onDragEnd = result => {
const { dragInfo } = this.state;
this.setState({ dragInfo: [] });
console.log(result);
if (result.destination) {
this.changeCardId(result);
dragInfo.push(result)
this.setState({ dragInfo });
}
};

render() {
const { dragInfo } = this.state;
return (
<div>
<div className="topIcons">
Expand Down Expand Up @@ -56,7 +57,7 @@ class App extends Component {
</span>
</div>
<DragDropContext onDragEnd={this.onDragEnd}>
<List onDragEnd={this.onDragEnd} />
<List dragInfo={dragInfo} />
</DragDropContext>
</div>
);
Expand Down
1 change: 1 addition & 0 deletions client/src/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class List extends Component {
const { name, listId, isListCreate, isListUpdate, newCard } = this.state;

console.log(lists, newCard);
console.log(this.props.dragInfo);
if (loading || error) return null;
return (
<div className="board">
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"url": "git+https://github.com/LukasChiama/trello_clone.git"
},
"author": "Chukwualuka Chiama",
"license": "ISC",
"license": "MIT",
"bugs": {
"url": "https://github.com/LukasChiama/trello_clone/issues"
},
Expand Down
2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"server": "nodemon index.js"
},
"author": "",
"license": "ISC",
"license": "MIT",
"dependencies": {
"graphql-yoga": "^1.16.7",
"mongoose": "^5.3.13"
Expand Down

0 comments on commit fdd7eff

Please sign in to comment.