The package manager for this project is bun
Install deps:
bun install
start the server on localhost using .env
file:
bun start
Build using:
bun install --production --frozen-lockfile && bun _build
Run using:
node ./dist/server.js
To disable testing mode set the environment variable TEST_MODE
to off
aka:
Bash:
export TEST_MODE=off
Dockerfile:
ENV TEST_MODE=off
Powershell:
$env:TEST_MODE = "off"
- Node.js latest
- Bun latest
- The following environment variables are required:
MONGODB_URI
- The URI for the MongoDB databaseUSERID_SECRET
- The secret for the user tokensOPERATE_PHONE_NUMBER
- Phone number of the service the server interacts withOPENAI_API_KEY
- The API key for OpenAIREFRESH_KEY
- The key for accepted for API calls to refresh active user sessions
- The following environment variables are optional:
TEST_USERID
- [Optional] The user ID for testingTEST_MODE
- set tooff
to disable testing modePORT
- [Optional] The port the server listens onHOST
- [Optional] The host the server listens on