Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 912 Bytes

README.md

File metadata and controls

51 lines (35 loc) · 912 Bytes

Server of Protolk

Prerequisite

Generic badge Generic badge

Run a demo with a local dB

Frontend Repo can be fount here

MySQL dB

Create a mySQL database

mysql -u root
CREATE DATABASE PROTOLK_DB_TEST;
USE PROTOLK_DB_TEST;
SHOW TABLES;

Grant access

CREATE USER 'newuser'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'newpassword';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;

Create the tables

node Cyri-tests/db-init_create_tables.js

Populate mock-data

node Cyri-tests/db-init_insert_mock_data.js

Run the server

npm install
node server-rest.js