WhileTrue is a company founded in the marketing science industry.
- What is WhileTrue?
- People
- Diversity
- Product & Research
- High-Level Architecture
- Getting Started
- Deployment
WhileTrue is a SaaS that generates personalized marketing copy (for emails, SMS, etc) given the limited user data of a regulated industry such as finance.
Access WhileTrue here
These instructions are how to get the app up and running locally.
Clone the repository git clone https://github.com/dcsil/WhileTrue.git && cd WhileTrue/src
You will need the following ENV Variables exported:
CLIENT_URL=http://localhost:3000
DATABASE_URL=${POSTGRES_DB_URL}
JWT_SECRET={JWT_SECRET, can use "secret"}
OPENAI_API_KEY=${OPENAI_API_KEY}
Goto package.json and change the line
"proxy": "http://localhost:8080"
to "proxy": "http://server:8080"
- Run docker compose build
docker-compose -p whiletrue --build --no-cache
- Create DB:
docker-compose -p whiletrue run --rm server npm run generate
- Migrate DB:
- Run:
docker-compose -p whiletrue up
The app will be accessible on localhost:3000
with the server on localhost:8080
.
- Install dependencies
cd app && npm install && cd ../server && npm install
- Run client
cd app && npm start
- Open a new terminal window and run server
cd server && npm start
Github Actions is used for continuous integration.
LogDNA is used to implement logging.
Sentry is used to implement exception handling.