react app + server for db class gpa calculator app
install in gpa-calc folder:
npm install
npm install axios
npm uninstall react-router-dom
npm install react-router-dom@5.2.0
install in server folder:
npm install express body-parser my-sql nodemon cors
- start XAMPP mySQL + apache server, open in localhost
- if first time, create gpa-calc table using fixed sql file in google drive
-
run
npm start
in gpa-calc folder and app should open in localhost:3000 -
run
nodemon index.js
in server folder and can check server at localhost:3001