GithubHelp home page GithubHelp logo

l0c4l1z3's Introduction

l0c4l1z3

If you ever had a case where putting in place translations for an app, you are at the right place.

This repository contains 2 different apps: a CDN for your language, delivering json files by namespace and language; and an application to edit those languages and namespaces.

Before all

Before using either of the functionnalities, be sure to install dependencies and build the project

$ npm install
$ npm run build

And install the database creating a .env file based on .env.example with the values for your database. You can spawn the database by executing

$ npm run truncate

Editor

The editor can be started using

$ npm start

It will deploy on http://localhost:8080 an app to enable you to manage Languages, Namespaces and their Translations which is a (key, value) pair.

CDN

The CDN can be started using

$ npm run cdn

It will only deploy CDN mode (no edit) on http://localhost:8080/api/{namespace}/{language}.json and render all your data there (plus cache).

Docker

A docker container is also available on https://hub.docker.com/repository/docker/charlesgael/l0c4l1z3 to start either cdn or langapp.

You have to specify those variables on the docker env:

DB_HOST=localhost
DB_PORT=3306
DB_SCHEMA=l0c4l1z3
DB_USER=root
DB_PASS=

And you should be set.

If you specify a CDN=true it will start on CDN mode.

l0c4l1z3's People

Contributors

charlesgael avatar

Watchers

 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.