This project was developed as part of my senior project for my computer science undergraduate degree at Cal Poly. It was advised by Dr. Sussan Einakian.
When learning OOP and UML diagramming in CSC 203, the diagram tools had steep learning curves. Also, a UML diagram can give a lot of information on what a new class should look like in code. This project allows users to create UML diagrams in a simpler way and generate template code from that diagram.
Here is all you need to know to setup this repo on your local machine to start developing!
- Clone this repository
git clone https://github.com/jlaksana/UML2Code.git - Change directories into the
/clientsubfolder - Run
npm iin the frontend subfolder of the repository - Change directories to
/serversubfolder - Run
npm iin the backend subfolder of the repository - Install IDE Extensions
- Enable format on save in your IDE
- Click the settings button in the bottom left
- Search "formatter" and set your default formatter to Prettier
- Search "format on save" and click the checkbox
- Reach out to an existing developer for environment variables
- Verify by running
npm run devin the frontend folder andnpm startin the backend folder
- .github Github Actions CI/CD
- client Root folder for React app
- server Root folder for backend API -
index.jsTop level file- controllers Controllers/business logic for each API endpoint
- middleware Middleware functions for endpoints
- models Schema definitions for data
- routes Express endpoint definitions and controllers
- tests All test cases for functions
Here are all of the steps you should follow whenever contributing to this repo!
- Before you start making changes, always make sure you're on the main branch, then
git pullandnpm ion both frontend and backend to make sure your code is up to date - Create a branch
git checkout -b <name-of-branch> - Make changes to the code
npm run testin the backend and frontend subfolder to ensure code standards. (runningnpx run lint-writewill fix most of the styling errors)