A modern e-commerce platform built with Flask, featuring vendor management, order tracking, and admin dashboard.
- 🛍️ Product Management - Add, edit, and manage products with categories
- 👥 User Management - Customer registration and authentication
- 🏪 Vendor System - Multi-vendor marketplace support
- 🚚 Driver Management - Delivery driver registration and tracking
- 📊 Admin Dashboard - Comprehensive admin panel with analytics
- 💰 Accounting - Built-in accounting and VAT management
- 📱 Responsive Design - Mobile-friendly interface with Tailwind CSS
- Backend: Python Flask
- Database: PostgreSQL (Nile Database)
- Frontend: HTML5, Tailwind CSS, JavaScript
- Authentication: Flask-Login
- Deployment: Vercel
- Clone the repository:
git clone https://github.com/andrekyle/shopit.git
cd shopit- Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
cp .env.example .env
# Edit .env with your database credentials- Run the application:
python app.pyThe application will be available at http://localhost:5004
- Email: admin@brandcartel.com
- Password: admin123
This application is configured for deployment on Vercel with Nile Database.
- GitHub Repository: https://github.com/andrekyle/shopit.git
- Vercel Account: Sign up at https://vercel.com
- Nile Database: Configured and running
Set the following environment variables in your Vercel dashboard:
SECRET_KEY=your-production-secret-key-change-this
POSTGRES_URL=postgres://0199cd7a-e98f-79db-935e-93827b9423b3:6e576d8f-193c-4587-9d8d-2f7bc60b16fc@us-west-2.db.thenile.dev/shopit
NILEDB_URL=postgres://0199cd7a-e98f-79db-935e-93827b9423b3:6e576d8f-193c-4587-9d8d-2f7bc60b16fc@us-west-2.db.thenile.dev/shopit
NILEDB_USER=0199cd7a-e98f-79db-935e-93827b9423b3
NILEDB_PASSWORD=6e576d8f-193c-4587-9d8d-2f7bc60b16fc
NILEDB_API_URL=https://us-west-2.api.thenile.dev/v2/databases/0199cd7a-e756-7fd6-aa7d-17c67c5ee715
NILEDB_POSTGRES_URL=postgres://us-west-2.db.thenile.dev/shopit
-
Push to GitHub ✅ (Already completed)
git push origin main
-
Deploy to Vercel:
- Visit: https://vercel.com/new
- Import from GitHub:
andrekyle/shopit - Add environment variables from above
- Deploy!
-
Alternative - Vercel CLI:
npm i -g vercel vercel --prod
The application will automatically:
- Connect to Nile Database using the provided credentials
- Initialize database schema on first run
- Create admin user: admin@brandcartel.com / admin123
After deployment:
- Visit your Vercel domain
- Login with admin credentials
- Configure site settings in admin panel
- Add products and categories
- Start selling!
The application uses Nile Database (PostgreSQL) for production and SQLite for local development. The database schema is automatically created on first run.
- Fork the repository
- Create a feature branch
- Make your changes
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.