Skip to content

Latest commit

 

History

History
93 lines (69 loc) · 3.22 KB

CONTRIBUTING.md

File metadata and controls

93 lines (69 loc) · 3.22 KB

Contributing to our-garden - a FOSS community garden project

Table of Contents

Code of Conduct

We have a code of conduct you can find here and every contributor is expected to obey the rules therein. Any issues or PRs that don't abide by the code of conduct may be closed.

Code Organization

Check out the overview in readme for the structure of the project.

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub

Setting Up the project locally

To install the project you need to have node and npm installed

  1. Fork the project, clone your fork:

    # Clone your fork
    git clone https://github.com/<your-username>/our-garden.git
    
    # Navigate to the newly cloned directory
    cd our-garden
  2. from the root of the project: npm install all dependencies

    • make sure you have latest npm version
  3. from the root of the project: npm start

Tip: Keep your master branch pointing at the original repository and make pull requests from branches on your fork. To do this, run:

git remote add upstream https://github.com/community-garden/our-garden
git fetch upstream
git branch --set-upstream-to=upstream/master master

This will add the original repository as a "remote" called "upstream," then fetch the git information from that remote, then set your local master branch to use the upstream master branch whenever you run git pull. Then you can make all of your pull request branches based on this master branch. Whenever you want to update your version of master, do a regular git pull.

Local Development

Our-Garden App can be built and developed on a host machine running a recent version of node , which can be managed bynvm. See individual instructions for your OS on how to install the node version manager. Either a local running neo4j database must be present or you can use our supplied docker-compose.yml setup. By running npm run docker:up you will have all dependant services at a glance.

Running the Web App

$ npm run start

Submitting a Pull Request

Please go through existing issues and pull requests to check if somebody else is already working on it, we use someone working on it label to mark such issues.

husky will run type checking, prettier and a linter before you are allowed to commit but you may run these commands seperately

npm test
npm run lint
npm run format

Add yourself as a contributor

This project follows the all-contributors specification. Contributions of any kind welcome!