Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.07 KB

README.md

File metadata and controls

58 lines (36 loc) · 1.07 KB

Wholesaler Dashboard Panel

A web application designed for wholesalers to manage product orders and invoicing.

Tech Stack

  • Frontend: SvelteKit, TailwindCSS, Flowbite
  • Backend: PostgreSQL, DrizzleORM
  • Authentication: Better-Auth

Prerequisites

Make sure you have the following tools installed:

Docker

Run the docker-compose.yaml

  docker compose up -d

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

DATABASE_URL, BETTER_AUTH_SECRET, BETTER_AUTH_URL, MOCK_COUNT_PRODUCT, MOCK_COUNT_ORDER, MOCK_ACCOUNT_PASSWORD

Dev mode

Generate database tables

  bun db:push

Generate mocks data

  bun db:seed

Run Drizzle Studio so you can find an email from a new generate user to login.

  bun db:studio

Run app

  bun dev

You can now use an email and the default password from MOCK_ACCOUNT_PASSWORD to login and browser the app