Skip to content

Latest commit

 

History

History
 
 

greeting-emails

DBOS Hello

This is a DBOS app bootstrapped with dbos init.

Getting Started

First, start the database. DBOS workflow works with any Postgres database, but to make things easier, we've provided a nifty script that starts Postgres locally in a Docker container and creates a database:

export PGPASSWORD=dbos
./start_postgres_docker.sh

Then, create some database tables. In this quickstart, we use knex.js to manage database migrations. Run our provided migration to create a database table:

npx dbos migrate

Next, build and run the app:

npm run build
npx dbos start

Finally, curl the server to see that it's working!

 curl http://localhost:3000/greeting/dbos

You can add more functionality to the app by modifying src/operations.ts, then re-building and re-starting it. We can help you get started in our programming quickstart.

Learn More

To learn more about DBOS, take a look at our documentation or our source code.