Installation
Code
Features
Documentation
Documentation of Escuela Facil
Generate
To generate modules you must execute the following command
Code
If the module name is made up of two words, you must use a hyphen to separate the words. You must use "user-profile", do not use "userProfile" or "UserProfile".
Example
Code
Migration
Generate
Directory should be full path, example:
src/migrations/{nameMigration}
Code
Run
Code
Running the app
Code
Test
Code
Branches
- Master: Prouction branch
- Staging: Testing branch. Used by QA and client to test the app
- Development: Development branch used by devs to work on new features. Always create a new feature branch from here.
Naming convention
Always use kebab-case when naming branches. Name format for feature
branches: {project-shorthand}-{ticket-number}/{type}/{description}.
Example: GC-56/fix/drawer-wont-open
Possible types:
build: Create project from scratchfeat: A new featurefix: A bug fixdocs: Documentation only changesstyle: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)refactor: A code change that neither fixes a bug nor adds a featureperf: A code change that improves performancetest: Adding missing or correcting existing testschore: Changes to the build process or auxiliary tools and libraries such as documentation generation
Merge Requests
Use commitizen to format commits in order to have a unified commit template to fill in.
-
npm i -g commitizen -
Use
git czinstead ofgit commit -
Follow the walkthrough and add the relevant information always including the ticket number with it's project shorthand for proper linking to Jira ticket, e.g.
GC-56
Rebase
We use fast forward method for Merge Requests, hence we need to rebase to be able to merge the feature branch into the destination branch (development in most cases)
- On feature branch
git pull origin development:developmentgit rebase origin/development- if conflicts, solve them and then
git rebase --continue(do this until there are no more conflicts) git push -f

