Coder Social home page Coder Social logo

kleopatra999 / mediawiki-services-cxserver Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wikia/mediawiki-services-cxserver

0.0 2.0 0.0 929 KB

Github mirror of "mediawiki/services/cxserver" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

License: Other

JavaScript 71.22% Shell 0.15% CSS 0.95% HTML 27.68%

mediawiki-services-cxserver's Introduction

ContentTranslation is a tool that allows editors to translate pages from one language to another with the help of machine translation and other translation tools.

This is the server component of ContentTranslation.

Installation

Install the dependencies:

$ npm install

Running the server

Using node

$ node Server.js

Using npm

$ npm start

As a cxserver command

Following step is to be performed only once. You might have to use sudo.

$ npm link .

Subsequently, just use following to start the server.

$ cxserver

Then browse to http://localhost:8080/. You'll see the server playground page.

Running it in secure mode (https)

You need to provide SSL certificate to start the server over secure mode.

Using node

$ node Server.js --secure --key key.pem --cert cert.pem

As a cxserver command

Following step is to be performed only once. You might have to use sudo.

$ npm link .

Subsequently, just use following to start the server.

$ cxserver --secure --key key.pem --cert cert.pem

Then browse to https://localhost:8080/. You'll see the server playground page.

Configuration

An default configuration file is given as config.defaults.js. Local changes in config.js will override the defaults. Restart server to read changes.

Debugging

To run the ContentTranslation server:

$ npm run-script debug

It will open Chrome developer tools with the ContentTranslation source code. You can debug the code just like a web application. You can also edit the code and save from the debugger.

Testing

To run the tests:

$ npm test

To run individual test:

$ node tests tests/path/to/individual/test

mediawiki-services-cxserver's People

Contributors

santhoshtr avatar kartikm avatar amire80 avatar nikerabbit avatar samyakbhuta avatar jdforrester avatar krinkle avatar

Watchers

rosa maria palacios juncosa 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.