https://github.com/edenlabllc/uaddresses.web
Admin portal of UAddresses.
https://github.com/edenlabllc/uaddresses.web
addresses catalogue javascript react uaddresses ui ukraine
Last synced: 22 days ago
JSON representation
Admin portal of UAddresses.
- Host: GitHub
- URL: https://github.com/edenlabllc/uaddresses.web
- Owner: edenlabllc
- License: mit
- Created: 2017-07-10T10:00:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-09-27T21:53:52.000Z (7 months ago)
- Last Synced: 2025-02-12T08:45:09.269Z (3 months ago)
- Topics: addresses, catalogue, javascript, react, uaddresses, ui, ukraine
- Language: JavaScript
- Size: 992 KB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# UAddresses
[](https://greenkeeper.io/)
[](https://travis-ci.org/edenlabllc/uaddresses.web)[](https://travis-ci.org/edenlabllc/uaddresses.web)
API: https://github.com/edenlabllc/uaddresses.api
## Demo
Try it here: http://uaddresses-web.herokuapp.com/
## Installation
### Heroku One-Click Deployment
[](https://heroku.com/deploy?template=https://github.com/edenlabllc/uaddresses.web)
### Docker
Dashboard can be deployed as a single container from [edenlabllc/uaddresses.web](https://hub.docker.com/r/edenlabllc/uaddresses.web/) Docker Hub.
## Configurations
Application supports these environment variables:
| Environment Variable | Default Value | Description |
| --------------------- | ----------------------- | ----------- |
| `PORT` | `8080` | Node.js server port. |
| `API_ENDPOINT` | `http://dev.ehealth.world/api/uaddresses` | eHealth API endpoint. |
| `AUTH_ENDPOINT` | `http://dev.ehealth.world` | Endpoint will be used for a token creation |
| `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 |
| `AUTH_COOKIE_NAME` | `token` | Name of the cookie, where storing token variable |
| `CLIENT_ID` | `0423bab7-4aa0-475f-a6a8-46738524eaf7` | Front-End client id |
| `CLIENT_SECRET` | `Q1BDNXZzSHdkYmpMWWVBZWNFalJaUT09` | Front-End client secret |
| `SCOPES` | `address:read address:write` | EHEALTH auth scopes |
| `OAUTH_URL` | `http://auth.dev.ehealth.world/sign-in` | Front-End client id |
| `OAUTH_REDIRECT_PATH` | `/auth/redirect` | Redirect path for create token in EHEALTH |## Docs
Dashboard works on top of [UAddresses management API](http://docs.uaddressesapi.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).