Swagger UI documentation is available here. When running the server locally, it is served at http://localhost:3030/docs/.
- node.js
- mongoDB
You will need the client as well. For more detailed setup instructions, take a look here. It is written for Windows but the procedure is similar for other OS.
- Go into project folder
- run
mongod
- run
npm start
- run
npm run setup
For more details how to set up Visual Studio Code, read this document.
- Take the Ticket Number from JIRA (ticketsystem.schul-cloud.org), e.g. SC-999
- Name the feature branch beginning with Ticket Number, all words separated by dash "-", e.g.
feature/SC-999-fantasy-problem
- Create a PR on branch develop containing the Ticket Number in PR title
- Keep the
WIP
label as long as this PR is in development, complete PR checklist (is automatically added), keep or increase code test coverage, and pass all tests before you remove theWIP
label. Reviewers will be added automatically. For more information check our Definition of Done here.
- Go into project folder
- run
npm run test
- Create a folder for the "service" you're working on in "/test/services"
- Create a file "user.test.js" for frontend tests (e.g. clicking a link or check if url is available)
- Create a file "unit.test.js" for backend tests (e.g. calculating a number)
Try to cover as many methods as possible unit test wise - goal is 100% of course, so one test per method.
Default branch: develop
- Go into project folder
- Checkout to develop branch (or clone for the first time)
- Run
git pull
- Create a branch for your new feature named feature/SC-Ticket-ID-Description
- Run the tests (see above)
- Commit with a meanigful commit message(!) even at 4 a.m. and not stuff like "dfsdfsf"
- Start a pull request (see above) to branch develop to merge your changes