Skip to content

drog/patients

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRUD Patients

Small Project with Spring boot + exposing services REST + SQLite + angularjs in client side. This project was built based in the next tutorial http://websystique.com/spring-boot/spring-boot-angularj

Libraries used

Server Side
Client Side

Some Screenshots

patients documents

Requeriments

  • Java 1.6

Execute Application

  1. Download zip or clone from github git clone https://github.com/drog/patients.git
  2. Go to parent folder
  3. Create a executable jar mvn package
  4. Start the application java -jar target/restExternal-0.0.1-SNAPSHOT.jar
  5. The Application will start in http://localhost:7777

Aditionally you can run the application in Eclipse or IntelliJ IDEA running the class main RestExternalApplication

Configuration

You can edit the configuration file in src\main\resources\application.properties and change the port, security, whatever

app.name=Pacientes App

spring.profiles.active=dev
#comment above profile and uncoment line below to operate using https
#spring.profiles.active=https
#spring.mvc.view.prefix: /WEB-INF/jsp/
#spring.mvc.view.suffix: .jsp
server.port=7777
#server.context-path=/v1

spring.jpa.database-platform=com.diego.rest.restExternal.config.SQLiteDialect
#spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.hibernate.ddl-auto=create
spring.jpa.show-sql=false
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.EJB3NamingStrategy

management.security.enabled=true

logging.level.org.springframework.web=DEBUG
logging.level.org.hibernate=ERROR

Configuration AngularJs

Modify src/main/resources/static/js/app/app.js line 5 URL_BASE = 'http://127.0.0.1:7777' for the ip of the server

Documentation generated with Swagger

You can acces to http://localhost:7777/swagger-ui.html and see the documentation generated by Swagger

swagger documentation

More Info