https://github.com/nebo15/man.web
Mán Templates Rendering Service
https://github.com/nebo15/man.web
cloud docker email javascript man markdown pdf rendering sms template ui
Last synced: 11 months ago
JSON representation
Mán Templates Rendering Service
- Host: GitHub
- URL: https://github.com/nebo15/man.web
- Owner: Nebo15
- License: mit
- Created: 2017-04-13T12:17:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T08:46:01.000Z (about 7 years ago)
- Last Synced: 2025-03-31T10:22:36.036Z (about 1 year ago)
- Topics: cloud, docker, email, javascript, man, markdown, pdf, rendering, sms, template, ui
- Language: JavaScript
- Size: 2.52 MB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 62
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Mán Dashboard
[](https://greenkeeper.io/)
[](https://travis-ci.org/Nebo15/man.web)
[](https://travis-ci.org/Nebo15/man.web)

Mán stores templates (in `iex`, `mustache`) or `markdown` documents, renders it over HTTP API with dispatch in PDF, JSON or HTML formats.
> "Mán" translates from the Sindarin as "Spirit". Sindarin is one of the many languages spoken by the immortal Elves.
API: https://github.com/Nebo15/man.api
## Demo

Try it here: http://man-web.herokuapp.com/
## Installation
### Heroku One-Click Deployment
[](https://heroku.com/deploy?template=https://github.com/nebo15/man.web)
### Docker
Dashboard can be deployed as a single container from [nebo15/man.web](https://hub.docker.com/r/nebo15/man.web/) Docker Hub.
## Configurations
Application supports these environment variables:
| Environment Variable | Default Value | Description |
| --------------------- | ----------------------- | ----------- |
| `PORT` | `8080` | Node.js server port. |
| `API_ENDPOINT` | `https://man-api.herokuapp.com` | Mán API endpoint. |
| `SITEMAP_HOSTNAME` | `http://localhost:8080` | URL will be used in sitemap generated urls |
| `LANG_COOKIE_NAME` | `lang` | Name of the cookie, where storing language variable |
## Docs
Dashboard works on top of [Man management API](http://docs.man2.apiary.io).
## Technologies
- React
- Redux
- Webpack
- Enzyme
- Karma
- Nightwatch
## Workflow
### Git flow
Every task should start a new branch. Branch should be named as task number what its corresponding.
After finish work on a task, you need to create PR.
### Testing
To contribute to the repository be ready to write some tests.
- Unit tests for business logic (we use Mocha)
- Integration tests for UI components (we use Enzyme)
- Acceptance tests for user stories (we use Nightwatch)
### PR
Every task finishes with PR. Eslint, Stylelint, and tests are blocking PRs. To simplify PR review, we deploy every PR's branch automatically on Heroku.
## License
See [LICENSE.md](LICENSE.md).