sdaas / sample-webapp Goto Github PK
View Code? Open in Web Editor NEWSample Java webapp using Jersey and Jetty. Includes support for unit, integration, and coverage tests
Sample Java webapp using Jersey and Jetty. Includes support for unit, integration, and coverage tests
What ==== A sample webapp * Jersey * Jetty Web server * Maven * TestNG for UnitTest * Selenium for Integration Tests * JMockit Coverage for Coverage Tests Steps ==== To run unit tests (including code coverage ) and webapp * mvn package * mvn jetty:run * curl http://127.0.0.1:8080/api/hello ( will point to servlet ) * curl http://127.0.0.1:8080/static/test.html ( will point to static content ) * curl http://127.0.0.1:8080/api/api-docs ( swagger ) To run integration tests * make sure that popup blocker is disabled in Safari * mvn verify Unit Test results are available in target/surefire-reports/index.html Coverage results are available in target/my-coverage-report/index.html Tests ===== All tests that use selenium ( integration tests ) must end with the **IntegrationTest.java. These files are configured in the pom to be excluded from unit tests ( by surefire plugin ) and included in integration tests ( by failsafe plugin ) Tags ==== Run the following command to see list of all the git tags git tag -n Running and Debugging from inside IntelliJ =========================================== Go to Maven Projects tab, then expand Plugins/jetty, right-click jetty:run and select Run / Debug. Swagger ======= * QuickStart https://github.com/wordnik/swagger-core/wiki/Java-JAXRS-Quickstart * UI https://github.com/wordnik/swagger-ui Stuff To Do =========== - Make the swagger UI point to itself without requiring any manual configuration
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.