Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joserobleda/node-po-editor
A web app for edit .po files writed in node
https://github.com/joserobleda/node-po-editor
Last synced: about 1 month ago
JSON representation
A web app for edit .po files writed in node
- Host: GitHub
- URL: https://github.com/joserobleda/node-po-editor
- Owner: joserobleda
- Created: 2014-07-26T11:08:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-10T07:49:29.000Z (over 9 years ago)
- Last Synced: 2024-08-09T11:15:40.273Z (4 months ago)
- Language: JavaScript
- Size: 898 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - joserobleda/node-po-editor - A web app for edit .po files writed in node (others)
README
node-po-editor
==============A web app for edit .po files with github integration, writed in node
### How to install:
1. Make sure you are running node `v0.10.29`
2. Run `npm install -g node-po-editor`
4. Config your parameters in `/secure/path/to/config.json`
5. Run `po-editor /secure/path/to/config.json`Config file example (or see [`sample.json`](https://github.com/joserobleda/node-po-editor/blob/master/neasy-sample.json))
````
{
// session handling
"cookie": {},
// server info
"server": {},
// xgettext locales config
"xgettext": {},
// --- optional config
// enable http basic auth
"httpAuth": {},
// enable mysql based http auth
"mysql": {},// if you want to enable the github integration
"github": {}
}
````#### cookie
````
{
"cookie": {
// put here a secret random number, it is for session handling
"secret": "super secret key"
}
}
````#### server
````
{
"server": {
// the domain where your app will be running
"domain": "localhost",
// the port to access your app
"port": 5000
}
}
````#### xgettext
````
{
"xgettext": {
// the path where you have your locale files (see locale estructure)
"path": "path/to/locale/root/locale",
// optional. a command to execute before parse the files
"pre": "php compile/twig/templates.php",
// array of paths to look for xgettext strings
"sources": [
"/tmp/cache",
"/src",
"/class"
]
}
}
````#### httpAuth
````
{
"httpAuth": {
// mysql auth type (only mysql for now)
"type": "mysql",
// mysql config (needs you to configure "mysql", see below)
"mysql": {
// the table of users your going to use, db.tablename
"table": "users.table",
// the username field in the mysql table
"username": "username.field",
// the password field in the mysql table
"password": "password.field",
// method to compare the password
"encoding": "mysql.function.like.md5"
}
}
}
````#### mysql
````
{
"mysql": {
// your mysql host
"host": "localhost",
// mysql user
"user": "root",
// mysql password
"password": "secret"
}
}
````#### github
Use this to enable github integration
````
{
"github": {
// a local path to your repo
"path": "/path/to/repo",
// your github token
"token": "your-github-token",
// the author of the commits
"user": "the-github-username",
// the owner of the repo
"owner": "user-or-org",
// the repo name
"repo": "the-github-repo-name",
// temporary branches prefix
"branch": "trans",
// commit message
"commit": "Updating translations"
}
}
````