Once successfull you can launch your local cozy with following url:[Cozy local url](http://cozy.tools:8080/)
Once successfull you can launch your local cozy with following url [Cozy local url](http://cozy.tools:8080/) and connect with the password '**cozy**'.
Local database can also be consulted at the following url: [Cozy local DB](http://localhost:5984/_utils/)
Local database can also be consulted at the following url: [Cozy local DB](http://localhost:5984/_utils/)
## Import moke data
## Import moke data
!!! info "Requirement"
!!! info "Requirement"
Your dev stack should be running to import the moke data
Your dev stack should be running to import the moke data
First install ACH using yarn :
First install ACH using yarn :
```
```
yarn global add cozy-ach
yarn global add cozy-ach
```
```
Next launch the script **createDayDataFiles.js** available into **test** folder
Next launch the script **createDayDataFiles.js** available into **test** folder
```
```
cd test
cd test
node createDayDataFiles.js
node createDayDataFiles.js
```
```
!!! info ""
!!! info ""
You can change the period of data generated by changing the following lines:
You can change the period of data generated by changing the following lines:
```
```
const startingdate = DateTime.local()
const startingdate = DateTime.local()
...
@@ -135,10 +162,15 @@ node createDayDataFiles.js
...
@@ -135,10 +162,15 @@ node createDayDataFiles.js
Json files with data will be created into **test/data** folder.
Json files with data will be created into **test/data** folder.
ACH script "importData.bat" will load the content of the file into your couchDB (database of your dev stack). Launch it using following commands:
ACH script "importData.bat" will load the content of the file into your couchDB (database of your dev stack). Launch it using following commands:
```
```
cd test
cd test
./importData.bat
./importData.bat
```
```
!!! info ""
You'll be prompted for a cozysessid, you can get it in the web console ; in the 'application' tab, look for the cookies and just copy the cozysessid value.
A new browser windows will open and asking you approval to import data. Just click on **Approve**
A new browser windows will open and asking you approval to import data. Just click on **Approve**
Finally your data is loaded and ready to be displayed in the Ecolyo Application !
Finally your data is loaded and ready to be displayed in the Ecolyo Application !
@@ -4,7 +4,7 @@ This section will allow you to install a proper local environment step by step f
...
@@ -4,7 +4,7 @@ This section will allow you to install a proper local environment step by step f
### Install VSCode
### Install VSCode
Installation for VSCode can be found here: [Installaltion of VSCode](https://code.visualstudio.com/).
Installation for VSCode can be found here: [Installation of VSCode](https://code.visualstudio.com/).
### Extensions
### Extensions
...
@@ -12,18 +12,18 @@ Installation of Extention is explained here: [Installation of Extensions](https:
...
@@ -12,18 +12,18 @@ Installation of Extention is explained here: [Installation of Extensions](https:
Here are the list of important extensions to install:
Here are the list of important extensions to install:
* Prettier - Code formatter
- Prettier - Code formatter
* ES7 React/Redux/GraphQL/React-Native snippets
- ES7 React/Redux/GraphQL/React-Native snippets
* GitLens - Git supercharged
- GitLens - Git supercharged
* Markdown Preview
- Markdown Preview
Optional extensions:
Optional extensions:
* Bracket Pair Colorizer 2
- Bracket Pair Colorizer 2
* CSS Peek
- CSS Peek
* Auto Rename Tag
- Auto Rename Tag
* indent-rainbow
- indent-rainbow
* TabOut
- TabOut
### User settings
### User settings
...
@@ -34,8 +34,7 @@ User settings for Ecolyo are describ in this section: **LINK TO SECTION TO ADD**
...
@@ -34,8 +34,7 @@ User settings for Ecolyo are describ in this section: **LINK TO SECTION TO ADD**
The project is using GitLab, you will need to install Git to checkout the projet.
The project is using GitLab, you will need to install Git to checkout the projet.
Installation for Git can be found here: [Installation of Git](https://git-scm.com/).
Installation for Git can be found here: [Installation of Git](https://git-scm.com/).
## Yarn
## Yarn
Yarn is used as package manager for this projet. Feel free to use the one you prefere but we advice to install yarn as all the documentation is describe with this package manager.
Yarn is used as package manager for this projet. Feel free to use the one you prefere but we advice to install yarn as all the documentation is describe with this package manager.
Installation for yarn can be found here: [Installation of Yarn](https://classic.yarnpkg.com/fr/docs/install/).
Installation for yarn can be found here: [Installation of Yarn](https://classic.yarnpkg.com/fr/docs/install/).
...
@@ -51,4 +50,3 @@ Installation of Docker can be found here: [Installation of Docker](https://www.d
...
@@ -51,4 +50,3 @@ Installation of Docker can be found here: [Installation of Docker](https://www.d
### Install Docker-Compose
### Install Docker-Compose
Installation of Docker-Compose (according to your OS) is explained here: [Installation of Docker-Compose](https://docs.docker.com/compose/install/).
Installation of Docker-Compose (according to your OS) is explained here: [Installation of Docker-Compose](https://docs.docker.com/compose/install/).