|
1 | 1 | # BottleCRM: Free and Open Source Customer Relationship Management
|
2 | 2 |
|
3 | 3 | <div align="center">
|
4 |
| - <h3>Powerful, Modern CRM for Everyone</h3> |
| 4 | + <h3>Powerful, Modern Multi-Tenant CRM for Everyone</h3> |
5 | 5 | </div>
|
6 | 6 |
|
7 |
| -BottleCRM is a free, open-source Customer Relationship Management solution designed to help small and medium businesses effectively manage their customer relationships. Built with modern technologies, it offers a comprehensive set of features without the enterprise price tag. |
| 7 | +BottleCRM is a free, open-source Customer Relationship Management solution designed to help small and medium businesses effectively manage their customer relationships. Built with modern technologies and enterprise-grade multi-tenancy, it offers a comprehensive set of features without the enterprise price tag. |
8 | 8 |
|
9 |
| -## 🚀 Features |
| 9 | +## ✨ Key Highlights |
10 | 10 |
|
| 11 | +- **Multi-Tenant Architecture**: Secure organization-based data isolation |
| 12 | +- **Role-Based Access Control**: Granular permissions for users and admins |
| 13 | +- **Modern Technology Stack**: Built with SvelteKit 2.x, Svelte 5.x, and PostgreSQL |
| 14 | +- **Mobile-First Design**: Responsive interface optimized for all devices |
| 15 | + |
| 16 | +## 🚀 Core Features |
| 17 | + |
| 18 | +### Sales & Lead Management |
11 | 19 | - **Lead Management**: Track and nurture leads from initial contact to conversion
|
12 | 20 | - **Account Management**: Maintain detailed records of customer accounts and organizations
|
13 | 21 | - **Contact Management**: Store and organize all your customer contact information
|
| 22 | +- **Opportunity Management**: Track deals through your sales pipeline with customizable stages |
| 23 | + |
| 24 | +### Customer Support |
14 | 25 | - **Case Management**: Handle customer support cases and track resolution
|
| 26 | +- **Solution Knowledge Base**: Maintain searchable solutions for common issues |
| 27 | +- **Multi-Channel Support**: Handle cases from various origins (email, web, phone) |
| 28 | + |
| 29 | +### Productivity & Collaboration |
15 | 30 | - **Task Management**: Never miss a follow-up with built-in task tracking
|
16 |
| -- **Opportunity Management**: Track deals through your sales pipeline |
17 |
| -- **Mobile Friendly**: Access your CRM data on any device |
18 |
| -- **Modern UI**: Clean, intuitive interface built with Svelte and TailwindCSS |
| 31 | +- **Event Management**: Schedule and manage meetings and activities |
| 32 | +- **Board Management**: Trello-like kanban boards for project tracking |
| 33 | +- **Comment System**: Collaborate with team members on records |
| 34 | + |
| 35 | +### Sales Tools |
| 36 | +- **Quote Management**: Generate professional quotes with line items |
| 37 | +- **Product Catalog**: Maintain product inventory with pricing |
| 38 | +- **Sales Pipeline**: Visual opportunity tracking with probability scoring |
| 39 | + |
| 40 | +### Administrative Features |
| 41 | +- **User Management**: Add team members with appropriate role assignments |
| 42 | +- **Organization Management**: Multi-tenant structure with data isolation |
| 43 | +- **Audit Logging**: Complete activity tracking for compliance |
| 44 | +- **Super Admin Panel**: Platform-wide management for system administrators |
19 | 45 |
|
20 | 46 | ## 🔮 Coming Soon
|
21 | 47 |
|
22 | 48 | - **Invoice Management**: Create, send, and track invoices (in development)
|
23 | 49 | - **Email Integration**: Connect your email accounts for seamless communication
|
24 | 50 | - **Analytics Dashboard**: Make data-driven decisions with powerful reporting tools
|
| 51 | +- **API Integration**: REST API for third-party integrations |
25 | 52 |
|
26 |
| -## 🖥️ Technologies |
| 53 | +## 🖥️ Technology Stack |
27 | 54 |
|
28 |
| -- **Frontend**: SvelteKit, Flowbite-Svelte, TailwindCSS |
29 |
| -- **Backend**: Prisma ORM with your choice of database |
30 |
| -- **Authentication**: Built-in authentication system |
| 55 | +- **Frontend**: SvelteKit 2.x, Svelte 5.x, TailwindCSS 4.x |
| 56 | +- **Backend**: Node.js with Prisma ORM |
| 57 | +- **Database**: PostgreSQL (recommended) with multi-tenant schema |
| 58 | +- **Authentication**: Session-based authentication with organization membership |
| 59 | +- **Icons**: Lucide Svelte icon library |
| 60 | +- **Validation**: Zod for type-safe form validation |
31 | 61 |
|
32 | 62 | ## 🚀 Getting Started
|
33 | 63 |
|
34 | 64 | ### Prerequisites
|
35 | 65 |
|
36 |
| -- Node.js (v20 or newer) |
37 |
| -- npm, pnpm, or yarn package manager |
38 |
| -- A database (PostgreSQL recommended) |
| 66 | +- **Node.js**: v22.13.0 (use nvm for version management) |
| 67 | +- **Package Manager**: pnpm (recommended) |
| 68 | +- **Database**: PostgreSQL (required for multi-tenancy features) |
39 | 69 |
|
40 | 70 | ### Installation
|
41 | 71 |
|
42 |
| -1. Clone the repository: |
| 72 | +1. **Clone the repository:** |
43 | 73 | ```bash
|
44 | 74 | git clone https://github.com/micropyramid/svelte-crm.git
|
45 | 75 | cd svelte-crm
|
46 | 76 | ```
|
47 | 77 |
|
48 |
| -2. Install dependencies: |
| 78 | +2. **Set up Node.js version:** |
| 79 | +```bash |
| 80 | +nvm use 22.13.0 |
| 81 | +``` |
| 82 | + |
| 83 | +3. **Install dependencies:** |
49 | 84 | ```bash
|
50 | 85 | pnpm install
|
51 | 86 | ```
|
52 | 87 |
|
53 |
| -3. Configure your environment variables (see `.env.example`) |
| 88 | +4. **Configure environment variables:** |
| 89 | +Create a `.env` file based on the following template: |
| 90 | +```env |
| 91 | +# Database Configuration |
| 92 | +DATABASE_URL="postgresql://postgres:password@localhost:5432/bottlecrm?schema=public" |
54 | 93 |
|
55 |
| -4. Run database migrations: |
| 94 | +# Google OAuth (Optional) |
| 95 | +GOOGLE_CLIENT_ID="" |
| 96 | +GOOGLE_CLIENT_SECRET="" |
| 97 | +GOOGLE_LOGIN_DOMAIN="http://localhost:5173" |
| 98 | +``` |
| 99 | + |
| 100 | +5. **Set up the database:** |
56 | 101 | ```bash
|
| 102 | +# Generate Prisma client |
| 103 | +npx prisma generate |
| 104 | + |
| 105 | +# Run database migrations |
57 | 106 | npx prisma migrate dev
|
| 107 | + |
| 108 | +# (Optional) Open Prisma Studio to view data |
| 109 | +npx prisma studio |
58 | 110 | ```
|
59 | 111 |
|
60 |
| -5. Start the development server: |
| 112 | +6. **Start the development server:** |
61 | 113 | ```bash
|
62 | 114 | pnpm run dev
|
63 | 115 | ```
|
64 | 116 |
|
| 117 | +### Development Workflow |
| 118 | + |
| 119 | +Before committing code, ensure quality checks pass: |
| 120 | + |
| 121 | +```bash |
| 122 | +# Type checking |
| 123 | +pnpm run check |
| 124 | + |
| 125 | +# Linting and formatting |
| 126 | +pnpm run lint |
| 127 | + |
| 128 | +# Build verification |
| 129 | +pnpm run build |
| 130 | +``` |
| 131 | + |
| 132 | +### Production Deployment |
| 133 | + |
| 134 | +```bash |
| 135 | +# Set Node.js version |
| 136 | +nvm use 22.13.0 |
| 137 | + |
| 138 | +# Generate Prisma client |
| 139 | +npx prisma generate |
| 140 | + |
| 141 | +# Run production migrations |
| 142 | +npx prisma migrate deploy |
| 143 | + |
| 144 | +# Build application |
| 145 | +pnpm run build |
| 146 | + |
| 147 | +# Start production server |
| 148 | +pnpm run preview |
| 149 | +``` |
| 150 | + |
| 151 | +## 🏗️ Architecture & Security |
| 152 | + |
| 153 | +### Multi-Tenant Design |
| 154 | +- **Organization Isolation**: Complete data separation between organizations |
| 155 | +- **Role-Based Access**: Users can have different roles across organizations |
| 156 | +- **Session Management**: Secure cookie-based authentication with organization context |
| 157 | + |
| 158 | +### User Roles |
| 159 | +- **User**: Standard access to organization data |
| 160 | +- **Admin**: Organization-level administrative privileges |
| 161 | +- **Super Admin**: Platform-wide access (requires @micropyramid.com email) |
| 162 | + |
| 163 | +### Data Security |
| 164 | +- All database queries are organization-scoped |
| 165 | +- Strict permission validation on all routes |
| 166 | +- Audit logging for compliance and tracking |
| 167 | + |
| 168 | +## 📁 Project Structure |
| 169 | + |
| 170 | +``` |
| 171 | +src/ |
| 172 | +├── routes/ |
| 173 | +│ ├── (site)/ # Public marketing pages |
| 174 | +│ ├── (no-layout)/ # Authentication pages |
| 175 | +│ ├── (app)/ # Main CRM application |
| 176 | +│ └── (admin)/ # Super admin panel |
| 177 | +├── lib/ |
| 178 | +│ ├── stores/ # Svelte stores for state management |
| 179 | +│ ├── data/ # Static data and configurations |
| 180 | +│ └── utils/ # Utility functions |
| 181 | +└── hooks.server.js # Authentication and route protection |
| 182 | +``` |
| 183 | + |
65 | 184 | ## 💬 Community and Feedback
|
66 | 185 |
|
67 | 186 | We love to hear from our users! Please share your feedback, report bugs, or suggest new features:
|
68 | 187 |
|
69 |
| -- Open an issue on GitHub |
70 |
| -- Join our community forum |
71 |
| -- Contribute code via pull requests |
| 188 | +- **Issues**: Open an issue on GitHub for bugs and feature requests |
| 189 | +- **Discussions**: Join community discussions for general questions |
| 190 | +- **Pull Requests**: Contribute code improvements and new features |
72 | 191 |
|
73 | 192 | ## 🤝 Contributing
|
74 | 193 |
|
75 | 194 | We welcome contributions of all kinds! See our [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to get started.
|
76 | 195 |
|
| 196 | +### Development Guidelines |
| 197 | +- Follow existing code patterns and conventions |
| 198 | +- Ensure all forms have proper accessibility (labels associated with controls) |
| 199 | +- Never use `$app` imports from SvelteKit (see packaging best practices) |
| 200 | +- Always filter database queries by organization membership |
| 201 | +- Add appropriate error handling and validation |
| 202 | + |
77 | 203 | ## 📄 License
|
78 | 204 |
|
79 | 205 | BottleCRM is open source software [licensed as MIT](LICENSE).
|
|
0 commit comments