mysql@5.6node@10.16.1- See https://docs.npmjs.com/downloading-and-installing-node-js-and-npm for how to install
knex@0.21.21- Install globally
npm install knex -g
- Install globally
- This project will run fine if you can prepare:
- A database called
simpleserver - user is
rootand password ispassword
- A database called
- If you have customized database name and different usernames and passwords then modify
knexfile.jswith your new credentials
- In project root, run
npm installto install packages for the server - Go to
client/directory and runnpm installto install packages for React client
- In root Run knex migration:
knex migrate:latest- This will generate a
producttable in your mysql database
- This will generate a
Start express server: node server.js
Terminal should display Server running on http://localhost:7555
- Go to
client/directory - Run
npm start, this will start React server - You can now access
localhost:3000to view the frontend