This app emulates a storefront which will take in orders from customers and deplete stock from the store's inventory. It also tracks product sales across the store's departments.
-
Create a MySQL database (Any name you want).
-
Inside the folder
configcreate a file namedenv.js. -
Inside
env.jspaste this:
module.exports = {
DATABASE_NAME: '<input here>',
DATABASE_USERNAME: '<input here>',
DATABASE_PASSWORD: '<input here>',
DATABASE_HOST: '<input here>',
DATABASE_PORT: <input here>,
MANAGER_PASSWORD: '<input here>',
SUPERVISOR_PASSWORD: '<input here>'
};- Enter your database information and desired passwords.
Run the app by typing npm start in the command line.
