Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
self_data_technical_doc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
web-et-numerique
Factory
LLLE_Project
self_data_technical_doc
Commits
e78ab2e2
Commit
e78ab2e2
authored
4 years ago
by
Yoan VALLET
Browse files
Options
Downloads
Patches
Plain Diff
update import of moke data
parent
c6a28c10
No related branches found
No related tags found
No related merge requests found
Pipeline
#10849
passed
4 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/ecolyo/getting_started/launch_local_application.md
+13
-10
13 additions, 10 deletions
docs/ecolyo/getting_started/launch_local_application.md
with
13 additions
and
10 deletions
docs/ecolyo/getting_started/launch_local_application.md
+
13
−
10
View file @
e78ab2e2
...
...
@@ -142,12 +142,7 @@ First install ACH using yarn :
yarn global add cozy-ach
```
Next launch the script
**createDayDataFiles.js**
available into
**scripts**
folder
```
cd scripts
node createDayDataFiles.js
```
Next create the "config.js" file base on the "config.template.js"
!!! info ""
You can change the period of data generated by changing the following lines:
...
...
@@ -163,6 +158,13 @@ You can change the period of data generated by changing the following lines:
Just replace -120 by the value needed
Next launch the script
**createDayDataFiles.js**
available into
**scripts**
folder
```
cd scripts
node createDayDataFiles.js
```
Json files with data will be created into
**scripts/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:
...
...
@@ -186,11 +188,12 @@ Your dev stack should be running to import data needed to simulate konnectors co
When using local environment, konnectors are not able to connect.
To simulate the connection you can use the script
**createConnection.js**
available in
**scripts**
folder.
First update the
Bearer and cozysessid information from the script
:
First update the
authorization and cookie information from the "config.js" file (if not create just create it from the "config.template.js" file)
:
```
Authorization:
'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
Cookie: 'cozysessid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
const authorization =
'Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
const cookie =
'cozysessid=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
```
To obtain your own Bearer and cozysessid you need to have the application launched and display the web console (F12) in your navigator and select the Network tab. Just select one request and retrieve information for Request Header:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment