- User-friendly dashboard for managing products, suppliers, and transactions.
- Real-time updates with API integration between frontend and backend.
- Modular architecture for scalability.
- Modern UI built with React and Vite.
- RESTful API backend with Flask.
- Database integration for persistent storage.
Frontend:
- React
- Vite
- JavaScript (ES6+)
Backend:
- Python
- Flask
Database:
- MongoDB
- Frontend: Deployed Frontend Link
- Database: Deployed via MongoDB Cluster
git clone https://github.com/your-username/Alfastack.git
cd Alfastack-maincd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.pyBackend will run on http://localhost:5000
cd frontend
npm install
npm run devFrontend will run on http://localhost:5173
- Launch a MongoDB Connection and then enter the MongoDB Conection String in the
app.py.
http://localhost:5000/api
GET /api/productsβ Fetch all productsPOST /api/productsβ Add a new productPUT /api/products/<id>β Update product by IDDELETE /api/products/<id>β Delete product by ID
GET /api/suppliersβ Fetch all suppliersPOST /api/suppliersβ Add new supplierPUT /api/suppliers/<id>β Update supplier by IDDELETE /api/suppliers/<id>β Delete supplier by ID
GET /api/transactionsβ Fetch all transactionsPOST /api/transactionsβ Add new transactionPUT /api/transactions/<id>β Update transaction by IDDELETE /api/transactions/<id>β Delete transaction by ID
Alfastack-main/
βββ backend/
β βββ app.py
β βββ requirements.txt
βββ frontend/
β βββ src/
β βββ package.json
β βββ vite.config.js
βββ .gitignore