Adding Custom Code
You don't have to know much about
ns-flip to modify code generated with it. You only need to understand how to make safe updates and test for them.
To modify a code base:
We will assume that you have a bash variable
$CODE defined to refer to the local path of your cloned code base.
Generate the code base for the first time:
$ npx ns-flip generate $CODE
Warning: that can take some time, because it will regenerate everything from scratch.
Modify Code and Test
Please read the rules for custom code.
Then start coding, running
npx ns-flip check -c $CODE regularly. If the check fails, see Understanding Test Results for an explanation.
If you have any problems, please feel free to ask for help on our community.