CyrielleAlbert / protolk-server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About


Languages

Language:JavaScript 94.9%Language:HCL 5.0%Language:HTML 0.1%