Vendly is an immersive, first ever AI powered e-commerce platform. Vendly focuses on utilizing AI with its edge breaking capabilities to simplify e-commerce. Vendly acts as a gaurd between your store and AI so everything remains intact. (Of course, there is room for NEEEEERDS tooo, a special one indeed.)
- You need have docker desktop installed in your device with WSL ubuntu/linux integration. Visit docker installation guide for setup.
- No container running or existing that conflicts with the name of service containers. Check names here
- NodeJS configured and running. Download it here
- PNPM installed and configured. If not, install from here
- Bun.js kicking your bun. Here's how: Kick-start bun
We have AI automation everywhere, autonomous agents coding applications and doing homework to job-work. Costing $$ more than ever. Most of the available e-commerce platforms are still old, cluttered and chaotic. Too many plugins and integration that will over-whelm any non-tech guy. They too cost $$.
Vendly saves the efforts, solves 90% of the store setup in just 10% of the time. Vendly provides an interface for AI Chat, talk with it, spout random words and let the AI hallucinate on your non-sense.
You can setup your store with-in minutes. Vendly provides numerous templates for your project, and custom builts for your needs. A dedicated CRM, Inventory Management System, Teams and Real-time Chat with detailed Analytics for NERDS.
Yet to decide. jk.. I'm not writing them
Vendly is built on modern-stack for cutting edge security and scalability. The primary stack consists of
| Name | Description |
|---|---|
| Next.js | Frontend: built with React.js for server actions and cache |
| TypeScript | For type-safing and schema strict data and predictability |
| Tailwind CSS | CSS styling within HTML |
| Shad/cn UI | For pre-built UI components |
| Bun.js | JavaScript run-time for backend services, uses TypeScript |
| ElysiaJS | For backend servers |
| Redis | For Server-side cache |
| JWT | Authentication and verification across multiple services |
| Prisma | ORM for accessing PostgreSQL databases |
| Docker | Docker containerization for each backend service. |
| K8s | For container orchestration and scalability. |
Vendly is a multi-tenant platform; focusing on privacy, data integrity and providing seemless interaction with store and AI. Henceforth, it is based on micro-services architecture. It comprises of separate individual and dependent services and databases. More details on infra are described below:
- Frontend: Utilizes Next.js with TypeScript + React.js. View FRONTEND.md for greater insights.
- API Gateway: Uses ElysiaJS with middleware for authorization and re-routing requests to individual services. All requests hit the exposed gateway url. They are authorized by JWT and re-routed to addressed services. View API_GATEWAY.md for more insights.
- Backend: Backend uses Bun.js with TypeScript. View BACKEND.md for greater insights.
Get started with this project. Contributions following contribution rules are allowed under MIT License.
Before starting, star the repository.
Execute the following statement in terminal where you want the repository to be cloned.
git clone https://github.com/AteebHussain2/vendly.pk.gitCopy .env.example in frontend to .env. Replace place-holder values with actual keys. You can get more details here
cd frontend && copy ./.env.example .envIn a new terminal, Copy .env.example in each of the backend service to .env. Replace place-holder values with actual keys. You can get more details here
Execute following instructions line by line:
cd backend
cd api-gateway && copy ./.env.example .env
cd ../user-service && copy ./.env.example .envNow, create a public and private keys to sign and verify JWT as described in the following table.
| Key | Destination |
|---|---|
| private.pem | user-service |
| public.pem | api-gateway |
Execute the following commands in terminal.
echo I DON'T KNOW THE COMMANDS FIGURE IT OUTRun the following commands in terminal for starting the application.
cd frontend && pnpm run devcd backend && docker compose up --build -dThis project is created under MIT license and allows fair usage.