- Fork this repository to your own GitHub account and then
git clone
it locally. - Run
npm install
in the root directory. - Run
npm run bootstrap
to 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 zero
2.Add a remote reference to the main zero repository:
git remote add upstream https://github.com/remoteinterview/zero.git
3.Ensure the configuration looks correct:
git remote -v
The 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 upstream
5.Hard reset your master branch with the zero master:
git reset --hard upstream/master
6.Push your master branch to your origin to have a clean history on your fork on GitHub:
git push origin master --force
7.You can validate your current master matches the upstream/master by performing a diff(Optional):
git diff upstream/master
The resulting output should be empty.