Skip to content

Quick Tutorials

Song Zheng edited this page Jan 13, 2022 · 7 revisions

Introduction

This page serves as a list of code samples to help you navigate certain concepts. When a pull request introduces a new concept, add it to this list!

Test

  • Mocking - sometimes you may not want libraries to be run during your tests. To auto mock out libraries, you just have to put the module-name.js into the __mocks__ folder. code sample for auto mocking.

Postgres

  • Dump (backups): pg_dump -h hostIP databaseName > ~/feb28-2022-c0d3_prod.sql
  • Connect: psql -U dbuser -h hostIP databaseName
Clone this wiki locally