GithubHelp home page GithubHelp logo

nishith-p / yukon-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wizguin/yukon-server

0.0 0.0 0.0 793 KB

A server for https://github.com/wizguin/yukon

License: MIT License

JavaScript 100.00%

yukon-server's Introduction

Yukon Server

Visit the Discord server for more support.

Yukon Discord members

Built With

Local Installation

These instructions will get you a copy of the project up and running on your local machine for development purposes.

Prerequisites

Installation

  1. Clone this repository.
git clone https://github.com/wizguin/yukon-server
  1. Install node dependencies.
npm install
  1. Copy "config_example.json" to a new file called "config.json".

  2. Generate a new crypto secret.

npm run secret-gen
  1. Import yukon.sql into your MySQL database.

  2. Update MySQL database credentials.

"database": {
    "host": "localhost",
    "user": "user",
    "password": "password",
    "database": "yukon",
    "dialect": "mysql",
    "debug": false
},

Usage

  • Running the dev server.
npm run dev
  • Building the server for production.
npm run build
  • Running the server in production mode. This will start all worlds listed in config.json.
npm run start
  • Stopping production servers.
npm run stop
  • Restarting production servers.
npm run restart
  • Listing production servers.
npm run list
  • Display live logs for production servers
npm run logs
  • PM2 monitor for production servers.
npm run monit
  • Generate a new crypto secret.
npm run secret-gen

Account creation

The easiest way to create accounts locally would be to simply enter them manually. Make sure to use a bcrypt hashed password, a tool such as this can be used to generate one.

$2a$10$nAxC5GXU0i/dacalTX.iZuRrtpmwmZ9ZzL.U3Zroh0jeSXiswFsne

Production Usage

The following is required when running the project in production.

  • The project must first be built using the build command.
npm run build
  • HTTPS can be configured as follows. Make sure your web server is also configured to use HTTPS.
"socketio": {
    "https": true,
    "ssl": {
        "cert": "/path/to/cert.crt",
        "ca": "/path/to/ca.ca-bundle",
        "key": "/path/to/key.key"
    }
},
  • The CORS origin must be set. This will likely just be your domain name, e.g "example.com".
"cors": {
    "origin": "example.com"
},
  • Run the server in production mode.
npm run start

Disclaimer

This project is a work in progress, please report any issues you find here.

yukon-server's People

Contributors

bale001 avatar n0bodysec avatar wizguin avatar

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.