Open Source Trello Clone
- Fork this repository
- Take a ticket from the trello board
- Cut a topic branch
- Finish the ticket
- Submit a pull request
You'll need to
register this app
as an Oauth application on Github.
Application name
Trossello (development)
Homepage URL
http://localhost:3000/
Application description
Open Source Trello Clone made by LearnersGuild (development)
Authorization callback URL
http://localhost:3000/oauth_callback
Copy the client id and client secret and use them below:
Create a .env file in the root of the cloned repo that looks like this:
GITHUB_CLIENT_ID=GET_THIS_VALUE_FROM_GITHUB
GITHUB_CLIENT_SECRET=GET_THIS_VALUE_FROM_GITHUB
SESSION_KEY=MAKEUP_A_REALLY_LONG_STRING_HERE
Go to Github and fork the project to your repo, then clone the fork. Then run the following:
$ git remote add upstream https://github.com/GuildCrafts/Trossello.git
$ brew install postgress
$ brew tap homebrew/services
$ brew services start postgresql
You can do one of two things: install nodemon and knex globally, which will automatically add both tools to your path, or add ./node_modules/.bin to your path (recommended). Depending on your shell, you will either need to add the following line to .zshrc or .bashrc:
export PATH=$HOME/bin:/usr/local/bin:./node_modules/.bin:$PATH
$ createdb trossello-development
$ knex migrate:latest
At this point, you should be able to run 'npm start' without errors. If you get an error, make sure that you can run nodemon, knex, and psql from the command line. If any of them fail, make sure to install them and try again.
- Node
- Express
- Webpack
- Babel es2016
- React
- Redux
- SQL via Knex
I think we should do this with postgresql and pg-promise because thats what they know.
we can make make live update work by polling for the entire board data. that would never scale but its simple.
| action | CRUD | verb | path |
|---|---|---|---|
| getBoardsByUserId() | index | get | /api/boards |
| createBoard() | create | post | /api/boards |
| getBoardById() | show | get | /api/boards/:boardId |
| updateBoard() | update | post | /api/boards/:boardId |
| deleteBoard() | delete | post | /api/boards/:boardId/delete |
| createList() | create | post | /api/boards/:boardId/lists |
| createCard() | create | post | /api/boards/:boardId/lists/:listId/cards |
| updateList() | update | post | /api/lists/:listId |
| deleteList() | delete | post | /api/lists/:listId/delete |
| updateCard() | update | post | /api/cards/:cardId |
| deleteCard() | delete | post | /api/cards/:cardId/delete |
Ask Contributors any questions about this project!
Week 1:
Week 2: