Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celalaygar/veterinary-web-project-with-spring-boot
Spring boot, Security, Thymeleaf, Mysql
https://github.com/celalaygar/veterinary-web-project-with-spring-boot
bootstrap4 jpa mysql spring-boot spring-mvc spring-security springmvc thymeleaf
Last synced: 1 day ago
JSON representation
Spring boot, Security, Thymeleaf, Mysql
- Host: GitHub
- URL: https://github.com/celalaygar/veterinary-web-project-with-spring-boot
- Owner: celalaygar
- Created: 2019-02-19T22:18:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-25T23:22:44.000Z (over 1 year ago)
- Last Synced: 2025-01-31T22:41:25.352Z (12 days ago)
- Topics: bootstrap4, jpa, mysql, spring-boot, spring-mvc, spring-security, springmvc, thymeleaf
- Language: Java
- Homepage:
- Size: 214 KB
- Stars: 8
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Veterinary web project with Spring Boot and Spring Security
- This project is simple spring boot and security and based role project for security
- How to use registering and login on spring boot and security with mysql.
- How to use insert customer and a lot of pets depending to customer on this project.
- How to use CRUD for user, customer and pets on this project.## How to run this project.
- Download this project then open this project on eclipse.
- After opening this project. right click on project then configure-> convert to maven project.
- Open application.properties file. write ` spring.jpa.hibernate.ddl-auto=create `.
- You need to make your database settings.
- You need to create a database called `auth` on wampserver & mysql. if you want to change database's name you can change by setting on application properties.
```
spring.datasource.url = jdbc:mysql://localhost:3306/auth?useUnicode=yes&characterEncoding=UTF-8
spring.datasource.username = root
spring.datasource.password =
```
- Then you can run this project on eclipse.
- Your database's table can create regularly After writing on application.properties file.
- After running this project, you can change setting ` spring.jpa.hibernate.ddl-auto=update` on application properties file.
- because this project contain devtools for `Automatic reload` throug devtools.
- Let's start using this project.
#### Using Tools & Technologies
```
- Spring Boot
- Spring Security
- Jpa, Hibernate
- Mysql
- Thymeleaf
- Bootstrap
```
#### This sql query is not completely correct sql query below.
- You had better to look at this applicaton.properties pls. Database's table can be generated automatically, İf you write `spring.jpa.hibernate.ddl-auto=create` on application.properties.
- Your database's table can create regularly when you wrote `spring.jpa.hibernate.ddl-auto=create` on application.properties.
```
CREATE TABLE user(
user_id INTEGER PRIMARY KEY NOT NULL,
username VARCHAR(20),
password VARCHAR(20),
reel_password VARCHAR(20),
city VARCHAR(20),
email VARCHAR(20)
);CREATE TABLE user_role(
user_id INTEGER PRIMARY KEY NOT NULL,
role_id INTEGER NOT NULL
);
CREATE TABLE role(
role_id INTEGER PRIMARY KEY NOT NULL,
role VARCHAR(20)
);CREATE TABLE customer(
customerid INTEGER PRIMARY KEY NOT NULL,
firstname VARCHAR(20),
lastname VARCHAR(20),
phone_number VARCHAR(20),
city VARCHAR(20),
email VARCHAR(20)
);CREATE TABLE pet(
id INTEGER PRIMARY KEY NOT NULL,
type VARCHAR(20),
name VARCHAR(20),
age VARCHAR(20),
problem VARCHAR(20),
customerid INTEGER NOT NULL
);
```