Send and receive messages using various telecom aggregators
  • PLpgSQL 59.5%
  • TypeScript 31.5%
  • JavaScript 8.7%
  • Lua 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-03-15 21:01:30 -04:00
.github/workflows feat: public commit 2024-03-02 00:38:41 -05:00
.vscode feat: public commit 2024-03-02 00:38:41 -05:00
deploy feat: public commit 2024-03-02 00:38:41 -05:00
docs feat: public commit 2024-03-02 00:38:41 -05:00
lua feat: public commit 2024-03-02 00:38:41 -05:00
migrations feat: public commit 2024-03-02 00:38:41 -05:00
scripts feat: public commit 2024-03-02 00:38:41 -05:00
src feat: public commit 2024-03-02 00:38:41 -05:00
typings feat: public commit 2024-03-02 00:38:41 -05:00
.dockerignore feat: public commit 2024-03-02 00:38:41 -05:00
.env.example feat: public commit 2024-03-02 00:38:41 -05:00
.gitignore feat: public commit 2024-03-02 00:38:41 -05:00
.nvmrc feat: public commit 2024-03-02 00:38:41 -05:00
.prettierignore feat: public commit 2024-03-02 00:38:41 -05:00
.prettierrc.js feat: public commit 2024-03-02 00:38:41 -05:00
.versionrc.js feat: public commit 2024-03-02 00:38:41 -05:00
CHANGELOG.md feat: public commit 2024-03-02 00:38:41 -05:00
commitlint.config.js feat: public commit 2024-03-02 00:38:41 -05:00
dangerfile.ts feat: public commit 2024-03-02 00:38:41 -05:00
database.json feat: public commit 2024-03-02 00:38:41 -05:00
Dockerfile feat: public commit 2024-03-02 00:38:41 -05:00
jest.config.js feat: public commit 2024-03-02 00:38:41 -05:00
LICENSE chore: add license 2024-03-15 21:01:30 -04:00
package.json feat: public commit 2024-03-02 00:38:41 -05:00
README.md feat: public commit 2024-03-02 00:38:41 -05:00
schema-dump.sql feat: public commit 2024-03-02 00:38:41 -05:00
tsconfig.json feat: public commit 2024-03-02 00:38:41 -05:00
tslint.json feat: public commit 2024-03-02 00:38:41 -05:00
update-dump.sh feat: public commit 2024-03-02 00:38:41 -05:00
yarn.lock feat: public commit 2024-03-02 00:38:41 -05:00

Switchboard

Developing

Environment setup

Copy the example environment. You may need to update the database connection string.

cp .env.example .env
vi .env

Install dependencies

# With Node 16.14
yarn install

Create databases:

psql -c "create database switchboard;"
psql -c "create database switchboard_test;"

Switchboard alters owners of many function to "postgres", which can throw errors (especially on postgres installed through homebrew on macOS), create a postgres user

psql -c "create user postgres;"

Bootstrap database and run tests

Install timescaledb

NODE_ENV=development dotenv -- yarn bootstrap-db
NODE_ENV=test dotenv -- yarn bootstrap-db

# Run tests
yarn test

Start dev server

# Run server in watch mode
yarn dev

Releasing

This project uses standard-version to manage releases.

yarn release

Other helpful options are:

# Preview the changes
yarn release --dry-run
# Specify the version manually
yarn release --release-as 1.5.0
# or the semver version type to bump
yarn release --release-as minor
# Specify an alpha release
yarn release --prerelease
# or the pre-release type
yarn release --prerelease alpha

For all standard-version options see CLI Usage.

Deploying

?