Here's an easy enough guide to making contributions to the project
First create a fork of the project from the original https://github.com/MartinsOnuoha/countriesNowAPI.git
git clone https://github.com/YourName/countriesNowAPI.gitcd countriesNowAPInpm inpm startnpm run integration:testnow visit the site on port 3000 (default) or whatever port was set as the PORT environment variable
- Create a new branch for each change prefixing branch name with the type of change
- e.g feat/get-houses, chore/update-readme
- Add new endpoints in the
./routes/countries.jsfile- The
./controllersfolder holds thecountryController.jsfile where each endpoint method lives- Create a method for every new endpoint within this file
- Add a test suite for each endpoint within the
./test/- Update the openApi Documentation in
./swaggerto reflect the new endpoints
- Currently the project uses commitizen style for making Commits.
- Since you already ran the
npm icommand, you should have everything setup to use commitizen.- Once you're ready to make that awesome change, do:
git add .Then run the commitizen npm script with:
npm run make:commit
- You can now make a push to your branch