You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 yıl önce
2 yıl önce
2 yıl önce
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # smf
  2. This application was generated using JHipster 5.7.2, you can find documentation and help at [https://www.jhipster.tech/documentation-archive/v5.7.2](https://www.jhipster.tech/documentation-archive/v5.7.2).
  3. ## Development
  4. To start your application in the dev profile, simply run:
  5. ./gradlew
  6. For further instructions on how to develop with JHipster, have a look at [Using JHipster in development][].
  7. Clone `application-dev.yml` to your profile `application-dev-[your-profile].yml`. Configure your environment variables.
  8. Run application by executing command `bootRun` and override default profile property:
  9. `gradlew clean bootRun --args='--spring.profiles.active=dev-[your-profile]'`
  10. Create casbin data by running sql `src/main/resources/casbin/casbin_rule.sql` and clean build again.
  11. ## Building for production
  12. To optimize the tpf application for production, run:
  13. ./gradlew -Pprod clean bootWar
  14. To ensure everything worked, run:
  15. java -jar build/libs/*.war
  16. Refer to [Using JHipster in production][] for more details.
  17. ## Testing
  18. To launch your application's tests, run:
  19. ./gradlew test
  20. For more information, refer to the [Running tests page][].
  21. ### Code quality
  22. Sonar is used to analyse code quality. You can start a local Sonar server (accessible on http://localhost:9001) with:
  23. ```
  24. docker-compose -f src/main/docker/sonar.yml up -d
  25. ```
  26. Then, run a Sonar analysis:
  27. ```
  28. ./gradlew -Pprod clean test sonarqube
  29. ```
  30. For more information, refer to the [Code quality page][].
  31. ## Using Docker to simplify development (optional)
  32. You can use Docker to improve your JHipster development experience. A number of docker-compose configuration are available in the [src/main/docker](src/main/docker) folder to launch required third party services.
  33. For example, to start a mysql database in a docker container, run:
  34. docker-compose -f src/main/docker/mysql.yml up -d
  35. To stop it and remove the container, run:
  36. docker-compose -f src/main/docker/mysql.yml down
  37. You can also fully dockerize your application and all the services that it depends on.
  38. To achieve this, first build a docker image of your app by running:
  39. ./gradlew bootWar -Pprod jibDockerBuild
  40. Then run:
  41. docker-compose -f src/main/docker/app.yml up -d
  42. For more information refer to [Using Docker and Docker-Compose][], this page also contains information on the docker-compose sub-generator (`jhipster docker-compose`), which is able to generate docker configurations for one or several JHipster applications.
  43. ## Continuous Integration (optional)
  44. To configure CI for your project, run the ci-cd sub-generator (`jhipster ci-cd`), this will let you generate configuration files for a number of Continuous Integration systems. Consult the [Setting up Continuous Integration][] page for more information.
  45. [jhipster homepage and latest documentation]: https://www.jhipster.tech
  46. [jhipster 5.7.2 archive]: https://www.jhipster.tech/documentation-archive/v5.7.2
  47. [using jhipster in development]: https://www.jhipster.tech/documentation-archive/v5.7.2/development/
  48. [using docker and docker-compose]: https://www.jhipster.tech/documentation-archive/v5.7.2/docker-compose
  49. [using jhipster in production]: https://www.jhipster.tech/documentation-archive/v5.7.2/production/
  50. [running tests page]: https://www.jhipster.tech/documentation-archive/v5.7.2/running-tests/
  51. [code quality page]: https://www.jhipster.tech/documentation-archive/v5.7.2/code-quality/
  52. [setting up continuous integration]: https://www.jhipster.tech/documentation-archive/v5.7.2/setting-up-ci/