This is a vending machine server which will keep the record of the items available in the vending machine. Backend used is MySQL
- Add a mypass.js file in the parent directory of this directory which will contain:-
module.exports = '<Your mysql root password>';
- Create the following tables:-
create table users(id int not null auto_increment,username varchar not null, password varchar not null, primary key(id));
create table products(id int not null auto_increment, A int, B int, C int, D int, primary key(id));
- Put a secret key in config.json.
npm start