Project to work with service orders from a mobile phone store made with: Java, JSF, CDI, Hibernate, Rest, EJB, Jboss and PostgreSQL, and take care with I18N. The languages available are English and Portuguese. Furthermore, we have another module, service-order-angular, this module is a only front-end module that consumes rest service from service-order project. It is build with angular and bootstrap and use some tools as bower and npm.
- What do you need?
- Jboss Wildfly 8.1.0.Final
- PostgreSQL 9.4
- JDK 1.8
- Maven
- NodeJS
- Git
- NPM
- Bower
- First you have to config your environment, to do this you can follow this instructions).
-
You'll need set the correct username and password of you database to the default value of application (username=postgres, password=postgres), or change them in the service-order-ds.xml file (it's into
service-order/service-order-ear/src/main/application/META-INF
). -
Create a new database with
serviceOrder
name. You dont't have to worry about creating tables, because in first time that the application starts, it is going to create for us. -
Import the project to your IDE (IntelliJ, Eclipse, Netbeans).
-
Config JBoss Server in the IDE.
-
Add the project to the server.
-
Start the server.
-
Open the browser and acess the adress link
- Go into the service-order-angular folder, and run
bower install
command to download all the css and angular dependencies. After that, executenpm install
to install all npm package that are necessary to the project. Finally, typegulp watch
, a browser window will be open with the project, be sure that wildfly server is running, because this module needs to consume rest servive from the service-order project.