Express Sample Applications

You can find the source code for all of the Express.js examples at the following GitHub repository:

https://github.com/translationexchange?q=express

If you would like to try the Jade templates example, follow these steps:

$ git clone https://github.com/translationexchange/tml-js-express-jade-samples-foody.git
$ cd tml-js-express-jade-samples-foody
$ npm install
$ npm start
$ open "http://localhost:4000"

For an example that uses EJS templates, follow these steps:

$ git clone https://github.com/translationexchange/tml-js-express-ejs-samples-welp.git
$ cd tml-js-express-ejs-samples-welp
$ npm install
$ npm start
$ open "http://localhost:4000"

To ensure that you have translation admin and rights in the above examples, please make sure to modify the key setting in the initialization code in the app.js file:

app.use(tml.init({  
    key: "your-project-key",
    ...
}));