Coder Social home page Coder Social logo

eladrprotocolbackend's Introduction

eladrProtocolBackend

This is a repo of eladr protocol backend

Installation for Linux

You can run eladrProtocolBackend on a clean Linux machine or VM.

  • Install essential tools required by running:
sudo apt install g++ build-essential git curl 
  • Install IPFS by the following commands:
## ipfs version 0.16.0 
wget https://dist.ipfs.tech/kubo/v0.16.0/kubo_v0.16.0_linux-amd64.tar.gz
tar -xvzf kubo_v0.16.0_linux-amd64.tar.gz
cd kubo
sudo bash install.sh
ipfs init
cd ../
  • Install Nodejs by the following commands:
## nodejs version 16.18.0
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash 
# Restart the temainal when the command successfully executed.
 nvm install 16.18.0
 node --version
  • Install and Setup MySql by the following commands:
## My sql version 8 
sudo apt install mysql-server
sudo systemctl start mysql.service
sudo mysql
## Use can change the user and password
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;
CREATE DATABASE eladr;
exit
  • Download and setup EladrProtocolBackend Server :
git clone https://github.com/yourforkedrepo.git
cd eladrProtocolBackend
npm install
touch .env
nano .env
### Your .env file must look like this:
PORT=8000
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=password
DB_DATABASENAME=eladr
## To run the script run:
Install pm2 version 5.2.2
npm install pm2 -g
pm2 start process.json
pm2 log
## The server will start up on port you entered above and you will see the following on your screen :


db name: localhost
listen port 8000
Executing (default): SELECT 1+1 AS result
Executing (default): SELECT 1+1 AS result
Connection has been established successfully.

eladrprotocolbackend's People

Contributors

arunwebber avatar moonman369 avatar ayush-panwar avatar

Watchers

 avatar

eladrprotocolbackend's Issues

Typo in app.js file

The app.js file should import Sequelize Model Constructor, videoandmeta from the file models/videometa.js.
On the other hand, app.js imports videometa as the Model Constructor. This typo causes problems when sending /database, /files and /search requests to the app.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.