A comprehensive stock inventory management system built for Smart Park in Rubavu District, Rwanda. This system helps manage spare parts inventory, track stock movements, and generate reports.
- User Authentication with JWT
- Spare Parts Management
- Stock In/Out Operations
- Daily Reports Generation
- Responsive Design with Tailwind CSS
- Frontend: React.js with Tailwind CSS
- Backend: Node.js with Express
- Database: MySQL
- Authentication: JWT with bcrypt
- Node.js (v14 or higher)
- MySQL Server
- npm or yarn
- Clone the repository:
git clone https://github.com/TelieChris/SIMS_2025.git
cd SIMS_2025- Install dependencies:
For Backend:
cd backend-project
npm installFor Frontend:
cd frontend-project
npm install- Set up environment variables:
Create a
.envfile in the backend directory with the following variables:
DB_HOST=localhost
DB_USER=your_database_user
DB_PASSWORD=your_database_password
DB_NAME=sims
JWT_SECRET=your_jwt_secret
PORT=5000
- Initialize the database:
- The database will be automatically initialized when you start the backend server
- Default admin credentials:
- Username: admin
- Password: Admin@123
- Start the backend server:
cd backend-project
npm start- Start the frontend application:
cd frontend-project
npm startThe application will be available at:
- Frontend: http://localhost:3000
- Backend: http://localhost:5000
- POST /api/login - User login
- POST /api/register - User registration
- GET /api/spare-parts - Get all spare parts
- POST /api/spare-parts - Add new spare part
- POST /api/stock-in - Record stock in
- POST /api/stock-out - Record stock out
- GET /api/reports/daily-stock-out - Get daily stock out report
- GET /api/reports/stock-status - Get stock status report
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License.
Chris Telie - GitHub