StockFlow is the groundbreaking, full-stack inventory management web app that ensures businesses donβt lose their minds (or their stock). Because who needs a spreadsheet when you can overcomplicate things with an entire application?
With an almost obsessive focus on usability, security, and efficiency, StockFlow gives you the illusion of control over your inventory. Whether you're an admin pretending to manage stock or a viewer clicking through some charts to look busy, StockFlow has all the life-changing tools you need to stay organized and informed.
β π Role-Based Access Control
- Because we can't trust everyone with critical inventory decisions. Admins get to play boss, and viewers get to... well, view.
β π± Responsive UI
- Works on all devices, so you can panic about low stock even on your phone! Built with Ant Design to ensure your UI looks professionally mediocre.
β π Inventory Management
- Perform CRUD operations (Create, Read, Update, Delete) on inventory items. Fancy words for "move stuff around."
- Transfer items between warehouses like a true logistics master.
- Receive low stock alerts, because running out of stock never happens at the worst possible time.
β π Data Visualization
- Stare at colorful bar charts and pie charts while pretending to analyze stock trends.
- Click-to-filter functionality, for those who enjoy clicking things just to feel productive.
β πΎ Data Export
- Export your inventory data as CSV files, so you can continue ignoring it in Excel instead.
β π Action Logging
- Every action is logged, so thereβs no denying that Steve from accounting definitely deleted those items.
β β‘ Optimized Data Fetching
- Uses TanStack Query to reduce API calls by 30%, because who doesnβt love efficiency that youβll never actually notice?
- β‘ React β Because every app is built with it these days.
- π¨ Ant Design β For that sleek "corporate dashboard" feel.
- β‘ TanStack Query β Makes data fetching slightly less painful.
- π Axios β Because REST APIs need their coffee too.
- π CSS β Sprinkles of styling magic (or chaos, depending on the day).
- π’ Node.js β Itβs JavaScript, but on the backend (magic, right?).
- π Express β Web framework that makes everything seem easier than it actually is.
- π³ MongoDB β NoSQL database, because tables are so last season.
- ποΈ REST API β How the frontend and backend communicate when they arenβt arguing.
- πΊ Vercel β Deploying your app faster than you can say "Oops, forgot to test that."
Look at this beauty β where security and sarcasm meet.
For those who like pretending to be in control.
Just some colorful charts to make you feel data-savvy.
Still staring at trends. Still pretending to understand them.
Predict the future like a stock wizard.
Because sometimes, clicking through pretty charts is enough.
For when you need to impress people with colorful circles and rectangles.
Bar Chart:
Before you begin, make sure you have these essential items installed:
- π’ Node.js (because JavaScript is life)
- π³ MongoDB (because you need somewhere to store your "organized" inventory)
- πΊ Vercel Account (so you can impress people with a live demo)
git clone https://github.com/your-username/stockflow.git
cd stockflow
Navigate to the server directory:
cd server
Install dependencies:
npm install
Create a .env file and add your MongoDB connection string (because security is important):
MONGODB_URI=your-mongodb-connection-string
JWT_SECRET=your-jwt-secret
Start the backend server:
npm start
Navigate to the client directory:
cd client
Install dependencies:
npm install
Create a .env file and add the backend API URL:
REACT_APP_API_URL=http://localhost:5000
Start the frontend development server:
npm start
Open your browser and navigate to http://localhost:3000 to experience the magic.
- Push your code to a GitHub repository.
- Import the repository into Vercel.
- Set the following environment variables in Vercel:
MONGODB_URI=your-mongodb-connection-string JWT_SECRET=your-jwt-secret
- Deploy the app and act like you knew what you were doing all along.
Contributions are welcome (if you dare)! Hereβs how to make your mark:
- Fork the repository (because we donβt trust you with direct edits).
- Create a new branch (
git checkout -b feature/your-feature
). - Make changes and commit (
git commit -m "Add your feature"
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request and hope for the best.
π If this project made you smile (or cry), donβt forget to star β the repository!