This project is a simple Oil Management System that allows users to log in, add data about oil products, and view the stored data. It features separate interfaces for admin and regular users. Admins have additional functionality to view the data stored in a CSV file.
- User Authentication: Login as admin or user.
- Add Data: Users can add data including product name, quantity, customer name, date and time, and price.
- View Data: Admins can view all the data stored in the system.
- Responsive Design: The interface is responsive and user-friendly.
- HTML, CSS, JavaScript for the frontend
- Node.js and Express for the backend
- CSV file for data storage
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/your-username/inventory-management-system.git cd inventory-management-system
-
Install dependencies:
npm install
-
Run the server:
node index.js
-
Open the application in your browser: Go to
http://localhost:3000
in your web browser.
-
Login:
- Go to the login page and select either
admin
oruser
from the dropdown menu. - Enter the password (
1
for admin,2
for user).
- Go to the login page and select either
-
Admin Interface:
- After logging in as admin, you can either view data or add data.
- Viewing data shows the stored records in a table format.
- Adding data allows you to input new oil product details.
-
User Interface:
- Users can add data about oil products.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.