- Fork this repository to your own GitHub account and then
git cloneit locally. - Run
npm installin the root directory. - Run
npm run bootstrapto link all the packages.
Run npm test to run all tests.
If you want to run server (on the test files) without running the test suite, you can do:
node test/startServer.js
Run zero with DEBUG=core to enable additional logging. Like:
DEBUG=core zero www
Once you run npm run bootstrap in this repository's root, it should make zero command available to you system-wide. cd into your app's directory and just run zero to start the server.
Before you dive into the code, it's recommended that you read the how it works page.
Note: If you have any outstanding Pull Request that you made from the master branch of your fork, you will lose them at the end of this step. You should ensure your pull request is merged by a moderator prior to performing this step. To avoid this scenario, you should always work on a branch separate from master.
You can skip to step 4 if you already added upstream to main repository
1.Change Directory to zero directory:
cd zero2.Add a remote reference to the main zero repository:
git remote add upstream https://github.com/remoteinterview/zero.git3.Ensure the configuration looks correct:
git remote -vThe output should look like:
origin https://github.com/YOUR_USER_NAME/zero.git (fetch)
origin https://github.com/YOUR_USER_NAME/zero.git (push)
upstream https://github.com/remoteinterview/zero.git (fetch)
upstream https://github.com/remoteinterview/zero.git (push)4.Update your local copy of the zero upstream repository:
git fetch upstream5.Hard reset your master branch with the zero master:
git reset --hard upstream/master6.Push your master branch to your origin to have a clean history on your fork on GitHub:
git push origin master --force7.You can validate your current master matches the upstream/master by performing a diff(Optional):
git diff upstream/masterThe resulting output should be empty.