No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

60 líneas
2.4 KiB

hace 3 años
  1. #### Technical stack description
  2. Frontend: Vue + ElementUI
  3. Backend: In order to be compatible with the low-level php runtime environment (compatible with 5.3), the conservative ThinkPHP 3.2.3 framework is used.
  4. Database: ShowDoc comes with a file database (/Sqlite/showdoc.db.php), no need to manually install the database
  5. #### Preparation before development
  6. Developing a machine requires first installing the PHP environment and the NodeJS environment.
  7. Download the code and place it in the www directory under the PHP environment
  8. First access in the browser through the address, in order to complete the initial installation of ShowDoc (if it has been installed, ignore it)
  9. Go to ShowDoc's web_src directory on the command line and execute npm install to install the dependencies. (If there is no npm, you must first install the NodeJS environment)
  10. #### Front-end development
  11. Execute npm run dev to enable the mode, and you can see the effect of the changes in real time by accessing localhost:8080. Please use a proxy to proxy to the PHP server when requesting the backend API.
  12. The npm run build needs to be executed before the final package takes effect. The packaged static files will be in the /web directory.
  13. Mainly related to the directories and files:
  14. ```
  15. Web_src/src/components //page components are basically placed here
  16. Web_src/src/router // page routing. Can target components based on url
  17. Web_src/static // static resource directory
  18. Web_src/static/lang // front-end language pack
  19. ```
  20. #### Backend development
  21. Mainly related directories and files
  22. ```
  23. Server/Application/Api/ //Application directory, basically all background apis are placed here
  24. Server/Application/Runtime/Logs //If there is an error log, it will print out the browser directly or print it here.
  25. Public/Uploads //The uploaded image is placed here
  26. Server/Application/Api/Lang //Backend language pack
  27. ```
  28. #### other instructions
  29. Please respect the open-source agreement after the second development, retain the copyright-logo and link
  30. If you have developed useful features, you may wish to contribute to the official GitHub code repository for sharing with everyone.
  31. The upgrade of ShowDoc may overwrite your original secondary development. If you want to be compatible, it is best to submit it to the official warehouse to become an official function.