InvSys is the web application for inventory management system Department Inventory where students borrow components for their projects.
-
Clone the repo:
$ git clone https://github.com/knztnt/InvSys.git
or
Navigate to root directory of the project.
$ npm install
$ cd client
$ npm install
$ cd ..
$ npm run dev
Run following script. InvSys.sql
CREATE DATABASE invsys;
In InvSys/app/config/db.config.js (Line 3 and 4), set your MySQL database username and password as follows. Default values are, username: 'root' and password: ''.
module.exports = {
HOST: "localhost",
USER: "root",
PASSWORD: "",
DB: "invsys",
dialect: "mysql",
pool: {
max: 5,
min: 0,
acquire: 30000,
idle: 10000,
},
};
In InvSys/app/server.js file, uncomment (29-32) lines and comment 26th line. This will initialize the database and sync all the tables. Or simply replace exixting server.js file with following script. Following script contains the server.js file when it is run initially.
InvSys server file | Resets database to initial state
- nodejs
- React
- MySQL
- bcryptjs
- body-parser
- cors
- express
- jsonwebtoken
- mysql2
- sequelize
- axios
- bootstrap
- fontawesome
- jwt-decode
- prop-types
- react
- react-avatar
- react-datepicker
- react-dom
- react-router-dom
- react-scripts
- react-validation
- validator
- nodemon
- concurrently
- knztnt Solutions - http://knztnt.github.io