Welcome to a guide on how you can structure your development process when building an Express API.
Think of it like a well-organized roadmap—each feature has a predictable journey, from early planning
(in the project board) to final deployment (merged into main),
ensuring that you always have clear next steps and visible progress.
It all starts with two essential branches:
You’ll do most of your day-to-day work in dev.
When a new feature is ready, it merges into dev.
Once you (and your Project Manager) are satisfied with dev’s content,
it can move to main and go live.
In your local git repository:
git checkout -b dev
// Make initial commits or push
From then on, every new feature should branch off from dev.
Before you begin coding each new feature:
Having a clear visual of what’s planned, what’s in progress, and what’s done keeps everyone informed and helps you plan your day-to-day progress.
// from the dev branch:
git checkout dev
git checkout -b feature-name
Now you have a dedicated feature branch to make commits for that task.
Write your code, implement endpoints, run tests—this is the coding phase. Make commits as you reach logical milestones:
git add someFile.js
git commit -m "Implement basic route logic"
If you want to push your branch to GitHub (for backup or collaboration):
git push -u origin feature-name
This is optional if you’re working solo, but it’s good practice and critical in a team environment.
dev Branch
Once the feature is working locally and meets the requirements on the Kanban card,
it’s time to incorporate it into dev:
git checkout dev
git merge feature-name
This pulls all commits from feature-name into your dev branch.
If there are conflicts, resolve them, commit the resolution, and proceed.
With the feature merged into dev, push your updated dev:
git push origin dev
Now your dev branch on GitHub includes the new feature, ready for review.
Your Project Manager needs to review your new functionality.
A Pull Request (PR) merges dev into main on GitHub.
Steps:
main (the branch we’re merging into)
and the compare is dev (the branch containing new changes).
Move your card on the Kanban board to In Review. This signals that you’ve finished the development portion of the feature.
While your PM reviews the PR, you don’t need to wait idly. Pick the next feature (move the corresponding card to In Progress), create a new branch from dev, and keep coding. This overlap helps keep you productive even as previous features await feedback.
Once your PM reviews your PR:
After merging, deploy the updated main branch to your production environment. Finally, move the Kanban card to Accepted—success!
git pull on your local branch to sync up changes.
By following this consistent workflow, you’ll streamline feature development, testing, and review cycles. Remember these key steps:
This approach helps ensure each feature is properly tracked, reviewed, and integrated without disrupting other parts of the system. Embrace this process, and you’ll find your Express API project evolving smoothly, with fewer surprises and a clear record of changes along the way.