# survive, as a team --- ## about me <div> <img alt="avatar" src="https://hackmd.io/_uploads/B1Hm9gWNa.png" width="200px" /> <img alt="madmaxieee's most used languages" src="https://github-readme-stats.vercel.app/api/top-langs?username=madmaxieee&exclude_repo=Tower-Defense&hide=verilog,html,qml,matlab,css,makefile&theme=tokyonight" /> </div> - hates these 3 programming languages the most - c++ - python - javascript - uses lowercase whereever possible --- # about building together how to git, the right way ---- ![image](https://hackmd.io/_uploads/Sy60VX0Bp.png) ---- ## who git? ![CleanShot 2023-12-07 at 01.01.52](https://hackmd.io/_uploads/rkOQtQ0ST.png) ---- <img src="https://hackmd.io/_uploads/B1m6vQCHa.png" width="200px"/> git doesn't fuck your code up, you are the one who does the fucking. <small> - Albert Einstein </small> ---- ## before anything else - `git status` - `git log` - to have your prompt show git status: - https://starship.rs/ ---- ## the factory, the box and the warehouse - `git add` - `git commit` - `git push` - `git pull` ---- ## better commits - conventional commits - feat - fix - chore - docs - refactor - small - concise ---- ## general house keeping - `git restore` - `git restore --staged` - `git clean` - `git stash` ---- ## even more house keeping - `git commit --amend` ---- ## trees and pointers - `git branch` - `git switch` ---- ## monkeying up and down the tree - `git checkout` - `git reset` ---- ## more on the warehouse - `git remote` ---- ## your gardening tools - `git merge` - `git fetch` - `git rebase` ---- ## more on merge conflicts - please use linter and formatter - precommit hook: [husky](https://typicode.github.io/husky/getting-started.html) - vscode merge editor ---- ## Houston, we have a problem - `git reflog` ---- ## bonus - `git bisect` - `git worktree` - github cli --- # git with the flow git flow and github flow ---- ## git flow ---- ### develop and main branches ![develop and main branches](https://wac-cdn.atlassian.com/dam/jcr:a13c18d6-94f3-4fc4-84fb-2b8f1b2fd339/01%20How%20it%20works.svg?cdnVersion=1345) ---- ### feature branches ![feature branches](https://wac-cdn.atlassian.com/dam/jcr:34c86360-8dea-4be4-92f7-6597d4d5bfae/02%20Feature%20branches.svg?cdnVersion=1345) ---- ### release branches ![release branches](https://wac-cdn.atlassian.com/dam/jcr:8f00f1a4-ef2d-498a-a2c6-8020bb97902f/03%20Release%20branches.svg?cdnVersion=1345) ---- ### hotfix branches ![hotfix branches](https://wac-cdn.atlassian.com/dam/jcr:cc0b526e-adb7-4d45-874e-9bcea9898b4a/04%20Hotfix%20branches.svg?cdnVersion=1345) ---- ## github flow ---- ### create a branch ![image](https://miro.medium.com/v2/resize:fit:720/format:webp/1*lpzlNpay9NjHX2_ZKxybRw.png) ---- ### make commits ![image](https://miro.medium.com/v2/resize:fit:720/format:webp/1*M2UxFl5zV5WIg7Fi-qiVXA.png) ---- ### create a pull request ![image](https://miro.medium.com/v2/resize:fit:720/format:webp/1*0kAw1cJT0qqBEe_EOB6pWw.png) ---- ### review your pull request ![image](https://miro.medium.com/v2/resize:fit:720/format:webp/1*ivP2yrk7gyf9IExV0paqvQ.png) ---- ### delpoy your branch ![image](https://miro.medium.com/v2/resize:fit:720/format:webp/1*Bvrg8BeIj1ZXBbCud91iwg.png) ---- ### merge your pull request ![image](https://miro.medium.com/v2/resize:fit:720/format:webp/1*W7gWOrCVgil4blizkRTFzQ.png) --- # about delivering how to turn in something alive ---- ## vercel: step by step guide https://vercel.com/ ---- ![CleanShot 2023-12-07 at 08 42 22@2x](https://github.com/madmaxieee/guess-the-lyrics/assets/76544194/17a719fe-1e03-4c0e-85fe-3ab28605ac38) ---- ![CleanShot 2023-12-07 at 08 42 50@2x](https://github.com/madmaxieee/guess-the-lyrics/assets/76544194/06231ab7-703c-4b37-96e1-2a77c7356c47) ---- ![CleanShot 2023-12-07 at 08.43.59@2x](https://hackmd.io/_uploads/SyIDrcABa.png) ---- ![CleanShot 2023-12-07 at 08.44.49@2x](https://hackmd.io/_uploads/SymjHcRrp.png) ---- ![CleanShot 2023-12-07 at 08.45.39@2x](https://hackmd.io/_uploads/B1spHcABp.png) - copy your .env file and press cmd+v here, or fill them in manually ---- ### common pitfalls - you can't run docker containers here, use other service instead - follow this [tutorial](https://ric2k1.notion.site/Free-postgresql-tutorial-f99605d5c5104acc99b9edf9ab649199?pvs=4) to get a database - your `NEXT_PUBLIC_BASE_URL` should also be set to the domain vercel gives you after deploying - follow the steps to redeploy after you update `NEXT_PUBLIC_BASE_URL` ---- ![CleanShot 2023-12-07 at 08.46.52@2x](https://hackmd.io/_uploads/ry_GU5ASa.png) ---- ![CleanShot 2023-12-07 at 08.48.24@2x](https://hackmd.io/_uploads/BkIPL50B6.png) ---- ![CleanShot 2023-12-07 at 08.50.13@2x](https://hackmd.io/_uploads/HkrR85RHp.png) ---- ![CleanShot 2023-12-07 at 12.31.46@2x](https://hackmd.io/_uploads/SkDlspASp.png) - get your domain here, you can now use your service ---- ![CleanShot 2023-12-07 at 12.34.15@2x](https://hackmd.io/_uploads/BJ22ip0rp.png) ---- ![CleanShot 2023-12-07 at 12.36.18@2x](https://hackmd.io/_uploads/HkfJhp0Sa.png) ---- ## deploying express+vite apps https://hackmd.io/@madmaxie/SJGCUr8Oo ---- ## vercel dashboard https://vercel.com/dashboard ---- ## vercel cli https://vercel.com/docs/cli
{"title":"survive as a team","contributors":"[{\"id\":\"647c5228-6699-4868-8f60-001a5307610c\",\"add\":6740,\"del\":882}]"}
    788 views