Proteus Examples
Example App
The example app (/proteus-examples/example-app) is a gradle project with dependencies on proteus framework that you can download here. The project is preconfigured for use with Intellij IDEA version 13+. Standard settings are provided for Intellij IDEA and Eclipse in the config folder.
Use
- Download and unpack the project.
- Open the project in your IDE of choice.
- Rename the project to match your needs - both project name and directory name unless the directory will become the root of the git repo.
- Update gradle.properties (especially app_group and app_vesion). You'll want to copy the read access properties for the artifact repo to your /home/$USER/.gradle/gradle.properties* file.
- Decide on a good package name for your project and update the files so that they don't use com.example.
- Modify com.example.app.config.ExampleAppProjectConfig to suit your project. Don't leave it named "ExampleAppProjectConfig".
- Add -Dspring.config=com.example.app.config.ExampleAppProjectConfig to all of your launch configurations (update for actual class name)
- If using Intellij IDEA then import the standard settings (File->Import Settings) from /proteus-examples/example-app/config/idea/settings.jar. Make sure the i2rd Code Style scheme is selected in the IDEA settings dialog.
- Create a git repo where you host your code such as github and push the project up.
- Code!
For documentation on the Proteus Framework, head over to http://docs.proteusframework.com