https://github.com/nutan22341/aifastack
⚡ Alfastack – A full-stack web app with a ⚛️ React + Vite frontend, 🐍 Flask backend, and 🍃 MongoDB database. Manage 📦 products, 🏢 suppliers, and 💸 transactions with a clean dashboard & RESTful APIs.
https://github.com/nutan22341/aifastack
flask-api html-css-javascript javascript mongodb mongodbcloud python3 react-router reactjs vite
Last synced: 2 months ago
JSON representation
⚡ Alfastack – A full-stack web app with a ⚛️ React + Vite frontend, 🐍 Flask backend, and 🍃 MongoDB database. Manage 📦 products, 🏢 suppliers, and 💸 transactions with a clean dashboard & RESTful APIs.
- Host: GitHub
- URL: https://github.com/nutan22341/aifastack
- Owner: Nutan22341
- Created: 2025-09-14T06:45:08.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-09-14T06:47:47.000Z (9 months ago)
- Last Synced: 2025-09-14T08:34:47.265Z (9 months ago)
- Topics: flask-api, html-css-javascript, javascript, mongodb, mongodbcloud, python3, react-router, reactjs, vite
- Language: JavaScript
- Homepage: https://alfastack-ashen.vercel.app/
- Size: 21.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Alfastack
## 🚀 Features
- 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.
---
## 🛠️ Tech Stack
**Frontend:**
- React
- Vite
- JavaScript (ES6+)
**Backend:**
- Python
- Flask
**Database:**
- MongoDB
---
## 🌐 Deployment Links
- **Frontend:** [Deployed Frontend Link](https://alfastack-ashen.vercel.app/)
- **Database:** Deployed via MongoDB Cluster
---
## ⚙️ Local Setup
### 1. Clone the repository
```bash
git clone https://github.com/your-username/Alfastack.git
cd Alfastack-main
```
### 2. Setup Backend (Flask)
```bash
cd backend
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python app.py
```
Backend will run on `http://localhost:5000`
### 3. Setup Frontend (React + Vite)
```bash
cd frontend
npm install
npm run dev
```
Frontend will run on `http://localhost:5173`
### 4. Setup Database
- Launch a MongoDB Connection and then enter the MongoDB Conection String in the `app.py`.
---
## 📡 API Documentation
### Base URL
```
http://localhost:5000/api
```
### Endpoints
#### **Products**
- `GET /api/products` → Fetch all products
- `POST /api/products` → Add a new product
- `PUT /api/products/` → Update product by ID
- `DELETE /api/products/` → Delete product by ID
#### **Suppliers**
- `GET /api/suppliers` → Fetch all suppliers
- `POST /api/suppliers` → Add new supplier
- `PUT /api/suppliers/` → Update supplier by ID
- `DELETE /api/suppliers/` → Delete supplier by ID
#### **Transactions**
- `GET /api/transactions` → Fetch all transactions
- `POST /api/transactions` → Add new transaction
- `PUT /api/transactions/` → Update transaction by ID
- `DELETE /api/transactions/` → Delete transaction by ID
---
## 📂 Project Structure
```
Alfastack-main/
│── backend/
│ ├── app.py
│ ├── requirements.txt
│── frontend/
│ ├── src/
│ ├── package.json
│ ├── vite.config.js
│── .gitignore
```