Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/afrieirham/wasepje

Open-Source WhatsApp Link Rotator
https://github.com/afrieirham/wasepje

clerk nextjs open-source postgresql prisma shadcn-ui supabase t3-stack tailwindcss trpc

Last synced: 29 days ago
JSON representation

Open-Source WhatsApp Link Rotator

Awesome Lists containing this project

README

        


poster





logo

WasepJe.com

Open-source WhatsApp Link Rotator, a wasap.my alternative.

## Tech Stack

This is a [T3 Stack](https://create.t3.gg/) project bootstrapped with `create-t3-app`.

For more information on the frameworks used for this project, checkout the following links:

- [Next.js](https://nextjs.org)
- [Clerk](https://clerk.com)
- [Prisma](https://prisma.io)
- [Tailwind CSS](https://tailwindcss.com)
- [tRPC](https://trpc.io)
- [shadcn/ui](https://ui.shadcn.com)
- [Supabase](https://supabase.com)

## Before running the project

**1. You need these environment variables, see `.env.example` for more information on the required format.**

- `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY`
- `CLERK_SECRET_KEY`
- `DATABASE_URL`
- `NEXT_PUBLIC_PRO_MONTHLY_URL`
- `NEXT_PUBLIC_PRO_ANNUALLY_URL`
- `NEXT_PUBLIC_BILLING_PORTAL_URL`
- `STRIPE_SECRET_KEY`
- `STRIPE_WEBHOOK_SECRET`
- `NEXT_PUBLIC_BEAM_ANALYTICS_DATA_TOKEN` (optional)

**2. Create a PostgreSQL database and get the database URL (this project uses Supabase).**

Create a New Database

```bash
createdb
```

Get the Database URL

Locally, you can grab the URL like this (replace username & password with your db credentials)

```bash
postgres://username:password@localhost:5432/
```

You can install PostgreSQL using [Supabase](https://supabase.com)

For Supabase, you can copy the connection URL from the project dashboard.

This URL should be used for the `DATABASE_URL` environment variable.

**3. Create a Clerk account, setup a project to get these value.**

- `NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY`
- `CLERK_SECRET_KEY`

**4. Create a Stripe account to get these value.**

- `NEXT_PUBLIC_PRO_MONTHLY_URL`
- `NEXT_PUBLIC_PRO_ANNUALLY_URL`
- `NEXT_PUBLIC_BILLING_PORTAL_URL`
- `STRIPE_SECRET_KEY`
- `STRIPE_WEBHOOK_SECRET`

**5. Create a `.env` file and add all the required variables.**

## Starting the app

**1. Fork and clone the repo locally.**

Fork the Repo initially, then clone it to your machine.

```bash
git clone https://github.com/YOUR_GITHUB_USERNAME/wasepje
cd wasepje
```

**2. Make sure all the required environment variables are added in `.env` file.**

**3. Install dependencies with [bun](https://bun.sh).**

If you haven't installed Bun yet, run the following command:

```bash
curl -fsSL https://bun.sh/install | bash
```

Next, install the required dependencies:

```bash
bun install
```

**4. Run `bun db:push` to setup the database.**

**5. Run `bun dev` to start the app on `localhost:3000`**