https://github.com/andreedyson/stockify-hub
StockifyHub is an inventory management web app built with Next.js, PostgreSQL, Prisma, and Tailwind CSS. It simplifies stock tracking and management with role-based access control, real-time updates, and a modern, responsive design.
https://github.com/andreedyson/stockify-hub
nextjs postgresql prisma tailwindcss typescript
Last synced: 3 months ago
JSON representation
StockifyHub is an inventory management web app built with Next.js, PostgreSQL, Prisma, and Tailwind CSS. It simplifies stock tracking and management with role-based access control, real-time updates, and a modern, responsive design.
- Host: GitHub
- URL: https://github.com/andreedyson/stockify-hub
- Owner: andreedyson
- Created: 2024-07-22T17:53:13.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T16:58:30.000Z (over 1 year ago)
- Last Synced: 2024-11-07T17:24:22.691Z (over 1 year ago)
- Topics: nextjs, postgresql, prisma, tailwindcss, typescript
- Language: TypeScript
- Homepage: https://stockify-hub.vercel.app
- Size: 2.45 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Stockify Hub**

## π Table of Contents
1. π° [Overview](#overview)
2. βοΈ [Technology Used](#tech-stack)
3. π©βπ» [Features](#features)
4. π [Getting Started](#started)
StockifyHub is a powerful, modern inventory management web application designed for flexibility, ease of use, and seamless stock management. Built with a high-performance tech stack of Next.js, PostgreSQL, Prisma, and Tailwind CSS, StockifyHub streamlines the complexity of inventory tracking with a clean, responsive design and a suite of features tailored to the needs of businesses of all sizes.
- Next.js
- Typescript
- PostgreSQL
- Prisma
- TailwindCSS
- Zod
- NextAuth
- shadcn
- UploadThing
π **Secure Authentication**: Secure authentication using NextAuth, user can sign up and log in with ease using email/password or Google account.
π¦ **Inventory Creation**: Create and manage multiple inventories within StockifyHub, organizing products, categories, and transactions in a structured and easy-to-navigate format.
π« **Role-Based Access**: Control access across three main rolesβOwner, Admin, and User.
π§βπ» **Add Members to Inventories**: wners can invite members to join an inventory and assign them either Admin or User roles.
ποΈ **Product and Category Management**: Easily add, update, and categorize products within inventories. Users with appropriate permissions can create categories to organize products, assign products to categories, and edit product details as needed.
π§Ύ **Transaction Tracking**: Track transactions by status (Pending, In Progress, Completed, Cancelled) to get the clarity on stock movement.
β **Real-Time Updates**: Get live updates on stock levels and inventory changes, ensuring your data is always up-to-date and allowing your team to make quick, data-driven decisions.
π₯οΈ **Modern, Responsive Interface**: With a design powered by Tailwind CSS, StockifyHub provides a seamless user experience across devices, allowing easy management from desktops, tablets, and mobile phones.
To set up StockifyHub locally, follow these steps:
1. **Clone the repository**:
```bash
git clone https://github.com/andreedyson/stockify-hub.git
cd stockify-hub
```
2. **Install Dependencies**:
```bash
npm install
```
3. **Configure environment variables**:
Create a .env file in the root directory with the required environment variables. Include your PostgreSQL database credentials, NextAuth configuration (e.g., secret, providers), and any other necessary variables.
```env
# NextAuth
NEXTAUTH_URL =
NEXT_PUBLIC_BASE_API_URL=
NEXTAUTH_SECRET=
# Postgres
POSTGRES_URL=
POSTGRES_PRISMA_URL=
POSTGRES_URL_NO_SSL=
POSTGRES_URL_NON_POOLING=
POSTGRES_USER=
POSTGRES_HOST=
POSTGRES_PASSWORD=
POSTGRES_DATABASE=
# https://uploadthing.com
UPLOADTHING_SECRET=
UPLOADTHING_APP_ID=
# https://console.cloud.google.com
GOOGLE_ID=
GOOGLE_SECRET=
```
5. **Migrate the database**:
Initialize your PostgreSQL database schema with Prisma:
```bash
npx prisma migrate dev --name init
```
6. **Run the development server**:
```bash
npm run dev
```
7. **Access StockifyHub**:
Open http://localhost:3000 in your browser to start managing your inventory.
---
Created by [@andreedyson](https://www.github.com/andreedyson)