In the project directory, you can run:
To start Promotion-Webapp
You need to :
-
create mySQL Database using dbproject.sql in config folder
-
create user who can access database
-
create Table User which consists of user records(username and password)
username password admin xxxx -
create dbconnect.js in config folder
Example module.exports = { host: 'localhost', user: 'root', pass: 'PASSWORD', database: 'DBNAME', port: '8889' } -
npm install at project path and client folder
-
npm install -g yarn
-
Finally, type "npm run dev" at project path to start app
Note! If you use mySQL Workbench, you need to run this:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'PASSWORD';