The Silvercel Inventory System is a standalone inventory management system designed for a single user to efficiently manage and track product stocks, categories, and related data. User authentication is handled through Supabase, while all backend operations use PHP and MySQL.
- HTML
- CSS
- JavaScript
- React
- Vite
- React Router
- Tailwind CSS
- Lucide Icons
- Fuse.js (for fuzzy searching)
- Axios (for HTTP requests)
- Supabase (for User Authentication)
- PHP
- MySQL
- Composer
- vlucas/phpdotenv
Follow these instructions to get the project up and running on your local machine for development and testing purposes.
- XAMPP (or any other local server with Apache, MySQL, and PHP)
- Node.js and npm
- Composer
- A Supabase account and project.
-
Navigate to the backend directory:
cd backend -
Install PHP dependencies:
composer install
-
Configure environment variables: Create a
.envfile in thebackenddirectory by copying the.env.exampleif available. Add the following environment variables:# Database Configuration DB_HOST=localhost DB_USER=your_database_user DB_PASS=your_database_password DB_NAME=your_database_name -
Database Setup:
- Start your MySQL server.
- Create a new database.
- Import the database schema. The schema can be found in the
backend/databasedirectory. (Instructions might be inbackend/database/README.md).
-
Web Server Setup:
- Configure your Apache server to point to the
backend/apidirectory as the document root. - Ensure
mod_rewriteis enabled.
- Configure your Apache server to point to the
-
Navigate to the frontend directory:
cd frontend -
Install Node.js dependencies:
npm install
-
Configure environment variables: Create a
.envfile in thefrontenddirectory. Add the following environment variables with your Supabase project details and backend API URL:VITE_SUPABASE_URL=your_supabase_project_url VITE_SUPABASE_ANON_KEY=your_supabase_anon_key VITE_API_BASE_URL=http://localhost/react_inventory_system/backend/api -
Run the development server:
npm run dev
The application will be accessible at the URL provided by Vite (usually
http://localhost:5173).