Skip to content
Merged

UI #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,21 @@
"presentation": {
"reveal": "silent"
}
},
{
"type": "shell",
"label": "install-chakra-ui",
"command": "npm",
"args": [
"i",
"@chakra-ui/form-control"
],
"options": {
"cwd": "${workspaceFolder}/apps/frontend"
},
"presentation": {
"reveal": "silent"
}
}
]
}
4 changes: 2 additions & 2 deletions PFT.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ This document tracks the features added to the project over time to ensure clari
- [x] **Set Up Database**: Implement the database schema using Prisma and set up PostgreSQL locally.

## **Backend API Development**
- [ ] **Authentication Module**: Implement user registration, login, and JWT-based authentication.
- [ ] **Inventory Management APIs**: CRUD operations for products.
- [x] **Authentication Module**: Implement user registration, login, and JWT-based authentication.
- [x] **Inventory Management APIs**: CRUD operations for products.

## **Frontend Development**
- [ ] **Set up React Project**: Create the initial React project structure.
Expand Down
23 changes: 20 additions & 3 deletions PPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,27 @@
- Added endpoint for creating wholesalers.

### 6. Frontend Development (Day 8 - Day 9)
- [ ] **Set up React Project**
- [x] **Frontend Setup**
- Created the initial React project structure.
- [ ] **Develop UI Components**
- Create reusable components for managing inventory, sales, and purchases.
- Installed necessary dependencies including `@chakra-ui/react`, `axios`, and `react-router-dom`.
- Set up routing with `React Router`.

- [x] **Reusable UI Components**
- Developed reusable components including `Navbar`, `Table`, `FormInput`, `Modal`, and `Card`.

- [] **Login/Registration Page**
- Implemented the login and registration forms.
- Connected the forms to the backend authentication API.
- Handled authentication state and error messages.

- [] **Dashboard Page**
- Designed the dashboard layout with dummy data.
- Created card components to display key metrics.

- [] **Inventory Management Page**
- Implemented the product list table with options to edit/delete.
- Added a form to add new products.
- Included search and filter options.

### 7. Testing and Deployment (Ongoing)
- [ ] **Write Unit Tests**
Expand Down
20 changes: 15 additions & 5 deletions PTA.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ This task list provides a comprehensive breakdown of all required steps to compl
## **Phase 1: Initial Progress Showcase**

### 1. Project Setup (Day 1 - Day 2)
- [ ] **Set up Monorepo**
- [x] **Set up Monorepo**
- Initialize the monorepo using tools like `Nx` or `Turborepo`.
- Create folders for `backend` and `frontend` projects.
- [ ] **Define Tech Stack**
- [x] **Define Tech Stack**
- Finalize stack: Node.js, Express.js, React (web), PostgreSQL.
- Install dependencies and set up ESLint, Prettier, and Husky.

### 2. Database Configuration (Day 3)
- [ ] **Create Database**
- [x] **Create Database**
- Implement database schema for initial features: Users, Products, and Sales.
- Use tools like `Prisma` or `Sequelize` for ORM.
- Set up PostgreSQL locally and test connections.

### 3. Backend API Development (Day 4 - Day 5)
- [ ] **Authentication Module**
- [x] **Authentication Module**
- Implement user registration, login, and JWT-based authentication.
- [ ] **Inventory Management APIs**
- [x] **Inventory Management APIs**
- CRUD operations for products.

### 4. Frontend Development (Day 6 - Day 7)
Expand Down Expand Up @@ -91,3 +91,13 @@ This task list provides a comprehensive breakdown of all required steps to compl

This updated timeline prioritizes completing 2-3 key pages and their backend logic for the client demonstration. Adjust based on progress and feedback.
```
Next Steps
[x]Create the Login/Registration page and connect it to the backend authentication API.

[]Test the Login and Registration pages to ensure they are correctly connected to the backend authentication API.

[]Handle authentication state (e.g., storing the token, redirecting authenticated users).

[]Design the Dashboard page with dummy data.

[]Implement the Inventory Management page with product list, add product form, and search/filter options.
Loading
Loading