Repository for the TeamHub Project. Technologies used:
- Based on NextJS framework (Server-Side Rendered React).
- Typescript setup (not being used at the moment)
- Front-End
- React
- Design System uses styled-components and styled-system
- State management will use Redux (and possibly redux-thunk for asynchronous redux).
- Back-endhttps://docs.docker.com/install/
Link to mockup.
Here are the steps to run locally:
- Install Docker and Docker Compose
- Copy the contents of
/backend/data/config.template.json
into/backend/data/config.json
- Go to the root directory and run
docker build ./docker -t teamhub
- To start the server, simply go to the root directory and run
docker-compose up -d
- To run a command in the docker container, for example
npm run test
, rundocker exec -it teamhub_nodejs /bin/sh
, which will open up a shell into the container and then you can run whichever commands you wish. To exit out of the container, press Ctrl + C. - To stop the docker containers, run
docker-compose stop
To run tests locally, use the command npm run test
when you are in a shell inside teamhub_nodejs
the docker container to ensure there were no breaking changes (see step 5 above). If you are not inside the teamhub_nodejs
the docker container, it will not connect to the database.
-
To use the MongoDB Compass desktop app, use
localhost
as the hostname and the default port 27017. -
If the DB did not load successfully from the dump and is empty, run
docker-compose rm
and then restart the server withdocker-compose up
.
- Take a look under Issues for ones you want to work on.
- Assign yourself to the issue to let others know you are working on it.
- Create a new branch and work on the issue on that branch.
- Create a Pull Request for merging the new branch (this should be done when you start working on the issue) so that others may see your progress
- Add the
wip
label to the Pull Request as well as[WIP]
to the title of the Pull Request. - Once you are finished, remove the
wip
label and[WIP]
from the title of the Pull Request, add theready-to-merge
label to your Pull Request, and add at least one reviewer. - Check up on your Pull Request and respond to any comments/questions
- Once your Pull Request has been reviewed and approved, you may merge it with
staging
if it has not been done so already by the reviewer. When merging a pull request, use theCreate a merge commit
option. - After testing, the
staging
branch will then be merged withmaster
and deployed to production by site maintainers.
Clone from GitHub with:
git clone https://www.github.com/waterloop/teamhub.git
Navigate to /backend/data/config.template.json
.
Make a copy and rename it to config.json
.
Ask Michael Pu (@mchlp) for the database url.
Follow the instructions listed under Setting Up Development Environment