Skip to content

Nutan22341/AIfastack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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


βš™οΈ Local Setup

1. Clone the repository

git clone https://github.com/your-username/Alfastack.git
cd Alfastack-main

2. Setup Backend (Flask)

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)

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/<id> β†’ Update product by ID
  • DELETE /api/products/<id> β†’ Delete product by ID

Suppliers

  • GET /api/suppliers β†’ Fetch all suppliers
  • POST /api/suppliers β†’ Add new supplier
  • PUT /api/suppliers/<id> β†’ Update supplier by ID
  • DELETE /api/suppliers/<id> β†’ Delete supplier by ID

Transactions

  • GET /api/transactions β†’ Fetch all transactions
  • POST /api/transactions β†’ Add new transaction
  • PUT /api/transactions/<id> β†’ Update transaction by ID
  • DELETE /api/transactions/<id> β†’ Delete transaction by ID

πŸ“‚ Project Structure

Alfastack-main/
│── backend/
β”‚   β”œβ”€β”€ app.py
β”‚   β”œβ”€β”€ requirements.txt
│── frontend/
β”‚   β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ package.json
β”‚   β”œβ”€β”€ vite.config.js
│── .gitignore

About

⚑ 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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors