Coder Social home page Coder Social logo

likecoin / oice-server Goto Github PK

View Code? Open in Web Editor NEW
13.0 9.0 6.0 1.33 MB

oice server and worker. oice is the next generation visual novel editor, featuring friendly and codeless UI, high quality art and assets, and compatibility with kirikiri KAG script.

Home Page: https://oice.com

License: Other

Python 22.46% Mako 0.02% Shell 0.06% Common Lisp 0.06% JavaScript 77.36% Dockerfile 0.04%
python pyramid cornice sqlalchemy oice kirikiri krkr visual-novel

oice-server's Introduction

Oice-server(modmod) README

CircleCI

Oice-server(modmod) project consist of

Basic version

  • Python3.4+
  • Assume Maria10.0 +
  • Redis3.0+
  • nodejs v0.12+
  • pip 1.5.6+ (Other version specific at requirements.pip)
  • Assuming unzip and zip is avalible. (nots ubuntu is not installed by default)

Python Server

How to run the python

  • cd <directory containing this file>
  • $VENV/bin/python setup.py develop
  • $VENV/bin/pserve development.ini

DB Migration commands

  • Create a migration: alembic -c development.ini revision -m "new table"

  • Running migrations: alembic [-c development.ini] upgrade head

  • Downgrade migration: alembic [-c development.ini] downgrade -1

Import / Export worker

In Import/Export workflow, you will need to open the pubsub server to get notified with the long runing process.

  • Run the worker

    rqworker

  • Run Redis, refs: http://redis.io/download

    redis-server

  • Run Socket.io

    Install the deps (socket.io) npm install node socket.io/server.js

Seed

  • After running setup.py
  • Add default tags to database initialize_modmod_db
  • Add dummy projects and ks files modmod_load_dummy

Suggested Dev Setup

Building docker image for use in oice/kubernetes

$ ./build.sh

pserve image will be tagged as modmod

socket.io image will be tagged as modmod-socket

Swagger UI with modmod.yaml

The set up will copy swagger/yaml/modmod.yaml to docker image. Swagger UI is hosted on localhost:9876.

Docker Image

To create the docker image of Swagger UI, in swagger/, run:

./build.sh

Start Swagger UI

To start Swagger UI, in ./swagger/, run:

./start.sh

Stop Swagger UI

To stop Swagger UI, in ./swagger/, run:

./stop.sh

oice-server's People

Contributors

mckingho avatar mileswong avatar nwingt avatar simonbut avatar williamchong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.