Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0prashantyadav0/b2b-saas-app

B2B-SAAS-APP build in Bun, Elysia, Turso and HTMX. Build for Industries to use to manage their work with multiple employee and manage the Tickets created by different User.
https://github.com/0prashantyadav0/b2b-saas-app

beth bun cicd docker docker-hub drizzle-kit drizzle-orm elysia github-actions htmx render turso unocss

Last synced: 3 months ago
JSON representation

B2B-SAAS-APP build in Bun, Elysia, Turso and HTMX. Build for Industries to use to manage their work with multiple employee and manage the Tickets created by different User.

Awesome Lists containing this project

README

        

# B2B-SAAS-APP

## [Link of Canvas of Project](https://app.eraser.io/workspace/wSaiPZPORvI7o7ZJjJRP?origin=share)

### Visit the [BETH.md](./BETH.md) to learn more about BETH Stack.

### Visit the [Project Details](./PROJECT.md) to learn about Project.

### Visit the [CI-CD](./CICD.md) to learn about CI/CD pipeline used in Project.

## About the 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.

### Functionality:

- 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.

## Installation with bun

To get start you need [bun](bun) installed into your system.
After that you need to clone the repository

```bash
git clone https://github.com/0PrashantYadav0/b2b-saas-app.git
```

After installing all the dependencies run

```bash
cd b2b-saas-app
bun install
```

Create a new turso database with

```bash
turso db create
```

Get the database url with

```bash
turso db show --url
```

Get the auth token with

```bash
turso db tokens create
```

(Optional) Create a new github developer app and get credentials

Add all the required env variable as per given in [env.example](./.env.example) file.

```bash
bun db:push
```

Now you are good to go

```bash
bun dev
```

## Installation with docker

For this you need to have docker install

Now run

```bash
docker push 0prashantyadav0/saas-app:latest
```

Now run the command to get started

```bash
docker run -p 3000:3000 0prashantyadav0/saas-app:latest
```

## Project Display :