Visit the BETH.md to learn more about BETH Stack.
Visit the Project Details to learn about Project.
Visit the CI-CD to learn about CI/CD pipeline used in Project.
This is a multi-tenant B2B SaaS application deployed at the edge using the BETH stack. In this application, you can register your organization, after which you will receive a link that can be shared with others to create tickets. Once a ticket is created, users can engage in a chat with you using the same ticket.
- We use Lucia Auth for authentication.
- Google Auth provides additional security.
- Type safety is used for HTMX.
- Type safety is enforced in both the frontend and backend.
- Drizzle is used for schema management.
- UnoCSS is utilized for styling.
- All data related to an organization is stored separately and can be shared in SQLite with the organization if needed.
- Local SQLite databases are created for frontend caching, reducing latency in data communication.
To get start you need bun installed into your system. After that you need to clone the repository
git clone https://github.com/0PrashantYadav0/b2b-saas-app.git
After installing all the dependencies run
cd b2b-saas-app
bun install
Create a new turso database with
turso db create <name>
Get the database url with
turso db show --url <name>
Get the auth token with
turso db tokens create <name>
(Optional) Create a new github developer app and get credentials
Add all the required env variable as per given in env.example file.
bun db:push
Now you are good to go
bun dev
For this you need to have docker install
Now run
docker push 0prashantyadav0/saas-app:latest
Now run the command to get started
docker run -p 3000:3000 0prashantyadav0/saas-app:latest