tofu is a B2B SaaS application that was generated using ROQ.ai
- Documentation: https://docs.roq.tech
- License: MIT
Make sure these tools are installed and up-to-date:
- Node
- NPM (or Yarn)
- Docker or local database
- Login to ROQ Console (opens in a new tab) and go to "Project Details"
- In the environment named "Local Environment", click the "Copy Env File" button and copy the entire output.
- Important: If your application is not running on
http://localhost:3000/
, change the URL in the environment's setting page before copying the output. - Create a new file called .env in the root of your project and paste the content in.
cp .env.example .env
There are two options for installing a database:
- You can install any database yourself that is supported by PrismaORM
- or you can install Postgres by using Docker. Make sure no other Postgres instance is running on the same machine.
docker-compose up
In any case, you need to add the configuration to your .env
file:
DATABASE_URL
# With npm
npm install
npm run dev
or
# With Yarn
yarn
yarn dev
Now you can open your app at http://localhost:3000.
To learn more about ROQ UI components and APIs, take a look at ROQ Documentation