This project use node.js as the backend sever, mySQL as the database, and react.js as the front end.
-
install node.js, you also need to have MySQL server and Apache server (we use MAMP)
-
create the database name
react_sql
in the MySQL server -
import file
./farm_ing/farm_ing_database.sql
into the databasereact_sql
-
change directory to the folder you stored the folder farm-ing and install backend dependencies
cd farm-ing
npm install
- execute index.js(backend app) in the command prompt (you can also use nodemon)
node index.js
-
go to
localhost:4000
in your browser, if it is connected you will see the message "hello from the farm-ing server!" -
change directory to the folder term which is inside the folder farm-ing and issue npm install install frontend dependencies
cd farm-ing/term
npm install
- start the react app
npm start
- it will automatically redirect you to
localhost:3000
in your browser(Chrome is reccomended) and welcome to our web application!