|
|
|
|
1
|
-# Tracim Front
|
|
|
|
|
1
|
+# Tracim Frontend
|
2
|
|
2
|
|
3
|
This project is the frontend part of Tracim.
|
3
|
This project is the frontend part of Tracim.
|
4
|
|
4
|
|
|
|
|
|
40
|
|
40
|
|
41
|
To do that
|
41
|
To do that
|
42
|
1) go to each Apps repositories ; currently 2 : (more to come)
|
42
|
1) go to each Apps repositories ; currently 2 : (more to come)
|
43
|
-- https://github.com/tracim/app_PageHtml
|
|
|
44
|
-- https://github.com/tracim/app_Thread
|
|
|
|
|
43
|
+- https://github.com/tracim/tracim_frontend_app_pagehtml
|
|
|
44
|
+- https://github.com/tracim/tracim_frontend_app_thread
|
45
|
2) install and build the sources `npm install && npm run build`
|
45
|
2) install and build the sources `npm install && npm run build`
|
46
|
-3) copy the __appRepository__/dist/__appName__.app.js file generated and past it to tracim_front/dist/app folder
|
|
|
|
|
46
|
+3) copy the __appRepository__/dist/__appName__.app.js file generated and past it to tracim_frontend/dist/app folder
|
47
|
|
47
|
|
48
|
-By default, for development, tracim_front expects every apps but wont crash if one is missing (currenlt not all of them are exists anyway)
|
|
|
|
|
48
|
+By default, for development, tracim_frontend expects every apps but wont crash if one is missing (currenlt not all of them are exists anyway)
|
49
|
|
49
|
|
50
|
### Developing Apps
|
50
|
### Developing Apps
|
51
|
|
51
|
|
|
|
|
|
53
|
|
53
|
|
54
|
/!\ Documentation on Apps interface is work in progress. /!\
|
54
|
/!\ Documentation on Apps interface is work in progress. /!\
|
55
|
|
55
|
|
56
|
-To test them inside Tracim, you need to build them and copast them to tracim_front/dist/app.
|
|
|
|
|
56
|
+To test them inside Tracim, you need to build them and copast them to tracim_frontend/dist/app.
|
57
|
|
57
|
|
58
|
-You also need to make the mock api able to tell tracim_front that it handle you app :
|
|
|
59
|
-- add an entry for you App in tracim_front/jsonserver/static_db.json in the `app_config` property
|
|
|
|
|
58
|
+You also need to make the mock api able to tell tracim_frontend that it handle you app :
|
|
|
59
|
+- add an entry for you App in tracim_frontend/jsonserver/static_db.json in the `app_config` property
|
60
|
- reload your mock api server
|
60
|
- reload your mock api server
|
61
|
-- add the source of your app in tracim_front/dist/index.html and an entry to the switch case of the function `GLOBAL_renderApp`. All of this will be handled by backend later on, this is all work in progress stuffs.
|
|
|
|
|
61
|
+- add the source of your app in tracim_frontend/dist/index.html and an entry to the switch case of the function `GLOBAL_renderApp`. All of this will be handled by backend later on, this is all work in progress stuffs.
|