For this project i assume you have Node.js
and Git
already installed on your PC.
run: git clone https://github.com/Rokkit-exe/POS.git
run: cd pos-system
add this line: REACT_APP_DATABASE_URL=http://localhost:8000/
Note: You can change the port number.
Note: You wont see this package in package.json
.
run: npm i json-server
run: cd backend
run: npx json-server --watch db.json --port 8000
Note: Port number needs to be the same as REACT_APP_DATABASE_URL
.
Note: Make sure you are in the root directory.
npm install
npm start
If no internet page opened by it self, you can open http://localhost:3000 to view it in your browser.