Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.31 KB

README.md

File metadata and controls

60 lines (45 loc) · 1.31 KB

IneryDBMS

Prerequirements

  • cline installed
    Run commands
git clone https://github.com/inery-blockchain/inery-build.git
cd inery-build/bin
echo "export PATH=\"\$PATH:`pwd`\""  >> ~/.bashrc
source ~/.bashrc
cline version full
  • inery-cpp installed

Run commands

sudo apt install libncurses5
git clone https://github.com/inery-blockchain/inery.cdt.git
cd inery.cdt/opt/inery.cdt/inery.cdt/bin
echo "export PATH=\"\$PATH:`pwd`\""  >> ~/.bashrc
source ~/.bashrc
inery-cpp --version
  • node version 18
  • npm version 8

.env file setup

The following environment variables should be set before running the project:

Variable name Purpose
PROTOCOL protocol( http or https )
SSL_KEY path to SSL key file
SSL_CERT path to SSL certificate file
ALLOWED_ORIGINS array of allowed origins separated by comma( , ). if you omit this variable, its value will be *

Before server start

Run commands

npm install
cd ./client
npm install
npm run build
cd ..

Commands

  • npm start  -  start index.js file
  • npm run dev  -  start index.js file with nodemon
  • npm run build  -  build files for Linux, Windows and MacOS
  • npm run serve  -  run built file for Linux