# Backend Architecture
The backend consist of a Hasura server and Node.js functions that run as GCP's Cloud Functions.
# __mocks__
Mocks for unit testing. These files replace some node_modules
during tests.
# database
Contains the Database schema and connection information. See database
for more information.
# scripts
General utility scripts that are used outside the application. Scripts can import code from the backend in order to modify DB during migrations or anything else.
# src
Contains all the source code of cloud functions.
# services
Any third party or external HTTP API that uses a vendor library such as Stripe or Segment is located here. They simply provide an abstracted interface for these libraries with some custom logic needed for the application.
# utils
General utility functions used across the backend logic.
# tests
Contains setup and specs for integration testing. Specs for unit testing are located next to the files they test.