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/)
## Import moke data
!!! 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
```
Next launch the script **createDayDataFiles.js** available into **test** folder
```
cd test
node createDayDataFiles.js
```
!!! 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()
...
...
@@ -135,10 +162,15 @@ node createDayDataFiles.js
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:
```
cd test
./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**
Finally your data is loaded and ready to be displayed in the Ecolyo Application !
\ No newline at end of file
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
### 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
...
...
@@ -12,18 +12,18 @@ Installation of Extention is explained here: [Installation of Extensions](https:
Here are the list of important extensions to install:
* Prettier - Code formatter
* ES7 React/Redux/GraphQL/React-Native snippets
* GitLens - Git supercharged
* Markdown Preview
- Prettier - Code formatter
- ES7 React/Redux/GraphQL/React-Native snippets
- GitLens - Git supercharged
- Markdown Preview
Optional extensions:
* Bracket Pair Colorizer 2
* CSS Peek
* Auto Rename Tag
* indent-rainbow
* TabOut
- Bracket Pair Colorizer 2
- CSS Peek
- Auto Rename Tag
- indent-rainbow
- TabOut
### User settings
...
...
@@ -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.
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.
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
### Install Docker-Compose
Installation of Docker-Compose (according to your OS) is explained here: [Installation of Docker-Compose](https://docs.docker.com/compose/install/).