<commit_before>DRE Front-end
=========

DRE front-end using FHIR API

##Quick up and running quide

###Prerequisites

- TBD

```
#install dependencies and build

tbd

```


## Contributing

Contributors are welcome. See issues https://github.com/amida-tech/dre-frontend/issues

## Release Notes

See release notes [here] (./RELEASENOTES.md)

## License

Licensed under [Apache 2.0](./LICENSE)<commit_msg>prepare readme.md<commit_after>DRE Front-end
=========

DRE front-end using FHIR API

# Platforms, Frameworks & Development Tools
  - [AngularJS](http://angularjs.org/): JavaScript Single Page Application Framework
  - [Bootstrap](http://getbootstrap.com/): Responsive UI Framework 
  - [Sass](http://sass-lang.com/): CSS Extension Language
  - [Compass](http://compass-style.org/): Tool for Compiling SASS into CSS
  - [NodeJS](http://nodejs.org/): Platform for Running Development Tools
  - [NPM](https://www.npmjs.org/):Package Manager for Node
  - [GruntJS](http://gruntjs.com/): Node Task Runner for Development and Build Activities
  - [Bower](http://bower.io/): Package Manager for Front End Components 
  - [Yeoman](http://yeoman.io/): Scaffolding Tool for the Front End App 
  
# Installation

## Get source code

 Get [sources from github](https://github.com/amida-tech/dre-frontend/)
 
## Install [Compass](http://compass-style.org/) SCSS compiller

(This is official install [How to](http://compass-style.org/install/))

Install Ruby. Here is [instruction](https://www.ruby-lang.org/en/documentation/installation/) please choose your platform and go on.

After Ruby will be installed, run 
```
gem update --system
gem install compass
```

> If after execute `gem update --system` you saw error about ssl sertificate.
> The reason is old rubygems. So we need to remove ssl source to be able to update gem --system which includes rubygems and so on. after this we can feel free to get back to ssl source.
>`gem sources -r https://rubygems.org/` - to temporarily remove secure connection
>`gem sources -a http://rubygems.org/` - add insecure connection
>`gem update --system` - now we're able to update rubygems without SSL
>after updating rubygems do vice versa
>`gem sources -r http://rubygems.org/` - to remove insecure connection
>`gem sources -a https://rubygems.org/` - add secure connection
>Now you're able to update gems using secure connection.
And try to update system and install compass again.


## Install [Node.js](https://nodejs.org) and global npm packages

[Download](https://nodejs.org/download/) and install Node.js server and npm package manager.

Then install yo, grunt-cli, bower, generator-angular and generator-karma:
Run (In Windows OS probably you will need to start cmd as Administarator)
```
npm install -g grunt-cli bower yo generator-karma generator-angular
```

## Install required packages

Install required npm packages. Go to 'src' directory and run 
```
npm install
```

Install required bower packages. Go to 'src' directory and run 
```
bower install
```

# Configuration managment

You have the option to choose your API services from different servers. This is helpful if you do not have or want the Backend Project set up on your local environment.
There are 2 configurations:

### Development without server (dev)

This is development server configuration. Log to the browser console debug information enabled.
```
grunt ngconstant:dev
```

### Staging (qa)
This is configuration for test stands. Use relative path server calls. Log to the browser console debug information enabled.
```
grunt ngconstant:qa
```

#### *Note about config switch*
Switching config will update *dreFrontend.util.dreFrontendEnvironment* service (dre-frontend\app\dre-frontend.util\scripts\config\dre-frontend-environment.js)
Please do not update it manual.

# Build & development

* Run `grunt build` for building  current configuration.
* Run `grunt serve` for preview current configuration.
* Run `grunt serve:dist` for preview current builded configuration.
* Run `grunt buildQa` for building qa version.

#### *Note for a staging build*
```
grunt buildQa
```

Application package will be stored in the 'src/dist' directory. 


## Contributing

Contributors are welcome. See issues https://github.com/amida-tech/dre-frontend/issues

## Release Notes

See release notes [here] (./RELEASENOTES.md)

## License

Licensed under [Apache 2.0](./LICENSE)
{'fraction_non_alphanumeric': 0.11202372804015515, 'fraction_numerical': 0.0011407711613050423, 'mean_word_length': 4.2755716004813475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, 'https://': 9, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3032729', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1251, 'n_words': 494}