Team 4 - Point of Sale System
- Kyle Cunningham
- Elisa Martinez
- Jordan Yu
- Steven Do
- Daniel Aigboduwa
It is named sqlDumpFile.sql and it's located in the root folder
email: [email protected]
password: p
email: [email protected]
password: password
You need to have installed: npm, git, nodejs
Links:
To install npm and nodejs To install git
- Create a folder in your computer
Type in the command line:
git init
[inside that folder to initialize a git repository]
git clone https://github.com/97morningstar/COSC-3380-PointOfSale.git
[To copy the remote repository into your own computer]
cd COSC-3380-PointOfSale
cd client
npm install
[inside /client to install client dependencies]
cd ..
npm install
[in the root folder to install server dependencies]
npm install -g nodemon
Type in the command line:
Go to the folder you just created and copy the contents of the zip file there
git init
[inside that folder to initialize a git repository]
cd client
npm install
[inside /client to install client dependencies]
cd ..
npm install
[in the root folder to install server dependencies]
npm install -g nodemon
nodemon
- react-scripts is missing or not installed when running the project with nodemon
- Run the following in the ./client:
cd client
rm-rf node_modules
rm -rf package-lock.json
npm install react-scripts
npm install
cd ..
nodemon
/routes
We create branches so we can work at the same time and then we merge those branches with the main one
git branch {your-branch-name}
git checkout {your-branch-name}
git push --set-upstream origin {your-branch-name}
Never push if you haven't pull the latest code and solve the merging conflicts locally if any
git add -A
git commit -m "Your message, what you did in the code"
git push
Always pull before starting to work for the day, or first verify that you have the latest code Make sure to know your origin
git pull origin heroku-deploy
Pull requests or PRs are basically how you merge your changes with the master code. They will be revised by a member of the group and that member will post comments on your code and ask you to fix those.
- Once you push your code you will see a green message saying if you want to create a pull request. Always do a pull request to heroku-deploy as it is the main branch. Do not delete your own branch as you will continue to use it.
- You can also click on Pull Request and open one there.
nodejs ❇️
expressjs 🚂
react
mysql 🔑
heroku 🚀
To test the queries:
- Install Postman
- Create a Collection (once)
- Click the 3 dots and create a new request by clicking "Add Request"
- Select the correct method (get, put, post, delete)
- Run the server in the command prompt
- Copy the localhost address and go to the link on the request (example: http://localhost:4200/api/create_item)