You can create a new Saruni project with
You could also use
npx but we recommend
yarn since most commands used during development with Saruni will depend upon it.
yarn create saruni-app ./my-app
npx create-saruni-app ./my-app
Saruni uses the tried-and-tested PostgreSQL as a data store. Follow the instructions for installation and then create a local database instance to get started.
psqlCREATE DATABASE database_name;
Saruni interacts with your database instance through Prisma behind the scenes. For that to happen, update the
DATABASE_URL variable following the PostgreSQL connection URL syntax.
You’ll want to ensure the
username supplied has suitable read/write permissions.
psql\du # list database roles
To work on your Saruni project simply run the
saruni dev command.
yarn saruni dev
This command launches development servers that boot up local instances of our cloud functions, Prisma client and Next.js project.