Skip to content

randomdrake/react-flow-org-chart

Repository files navigation

React Flow Org Chart

Recording

👋 Hello! Welcome to a little proof of concept I put together to showcase and practice skills with:

  • React
  • TypeScript
  • JavaScript
  • JSX
  • Tailwind
  • React Flow
  • Vite

♻️ This is a straightforward fake org chart generator. It does the following:

  • Creates a fake org chart given the number of employees
  • Lets you draw org charts vertically or horizontally
  • Creates realistic-ish looking organizations with a CEO on the top, managers beneath, and teams of 1-7 people underneath them
  • Regenerates with new people every time you redraw / load
  • Uses Faker to generate names, titles, and profile images
  • Utilizes React Flow and the Dagre library for the tree layouts

🏃 Running the App

npm install - Install the dependencies

npx tailwindcss -i ./src/input.css -o ./public/output.css --watch - Build the Tailwind CSS

npm run dev - Run the program using Vite

📸 Screenshots

Horizontal Layout:

Horizontal Layout

Vertical Layout:

Vertical Layout

Detail:

Detail

🪪 License

Copyright (c) 2024 David Drake

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

👨‍💻 Author

David Drake

@randomdrake | LinkedIn

About

Proof of concept of an org chart generator using React Flow.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published