You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Debugging

After cloning your codebase from GitHub, now it's time to write/debug code.

Probably you won't yet have every required library installed, but worry not! We use docker container to standardise everything (versions/libraries).

In one word, you'll find it more convenient and elegant to write/debug code in docker container env (instead of on your laptop's local env).

Read the doc below to know how.

Dev/Debug in Container


Servers

The test server can be accessed from MongoDB Atlas, please follow the MongoDB Atlas section in this guide.

The prod server is on BioHPC and we can access it through Postman, etc. Be careful when sending requests to the prod server.


Postman

Postman is useful for sending HTTP requests to the back-end APIs. 

  1. Install Postman
  2. Checkout Backend Online APIs  for Backend Online APIs

Notes

Samples are identified by their barcode ids. If submit two surveys with the same barcode, then the latest submitted survey will replace the old one. Even if different users use the same barcode, the sample will get replaced. So when testing, if you do not scan a barcode, the sample will always be stored as no barcode, and the database will always only store the latest survey.

  • No labels