Giter VIP home page Giter VIP logo

yanqi's Introduction

YANQI

An elegant P2P video sharing website, support online streaming.

Screenshot

screenshot

Install and run

Requirements

  • Node
  • MongoDB
  • ElasticSearch (including the corresponding plugin)
# Tips: recommend centos 7, cause you might encounter some mistakes installing or running mongodb and elasticsearch on centos 6

yum install epel-release

# install stable 8.x nodejs
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_8.x | bash -
yum install nodejs

# optional: install pm2 and bittorrent-tracker
npm install pm2 -g
npm install -g bittorrent-tracker

# install elasticsearch
yum install java
wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.6.4.rpm
rpm -ivh elasticsearch-5.6.4.rpm

# set elasticsearch
# for 1G memory server, the recommended setting is:
#  -Xms128m
#  -Xmx256m
vim /etc/elasticsearch/jvm.options

# install elasticsearch plugin
/usr/share/elasticsearch/bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v5.6.4/elasticsearch-analysis-ik-5.6.4.zip

Get the code

$ git clone [email protected]:qqdaiyu55/YanQi.git
$ cd YanQi
$ npm install

Compile for development or production

# For development
$ npm run dev

# For production
$ npm run build

Run

Before run the app, make sure you have started mongoDB and elasticsearch services.

$ npm run start

Acknowledge

yanqi's People

Contributors

qqdaiyu55 avatar

Stargazers

 avatar  avatar  avatar Zroe avatar  avatar  avatar

Watchers

James Cloos avatar  avatar  avatar  avatar

Forkers

dunghc

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.