MySQL is required for database management.
🔥 Prerequisites: Make sure MySQL is installed.
- Check that the following section in the
applications.propertiesfile matches the environment in which you're running the project. The database name is toadhouse, and MySQL username is set to root.
spring.datasource.url=jdbc:mysql://localhost:3306/toadhouse?serverTimezone=UTC&characterEncoding=UTF-8
spring.datasource.username={your_username}CREATE DATABASE toadhouse; to create the database manually before running the application.
- Add your MySQL password in
applications-db.propertiesfile, enter the MySQL password as follows.
spring.datasource.password={your_password}Google Cloud Storage is required for image storage.
- Please create a Storage Bucket, and create a service account key.
- Please add the json file containing information from the service account key to 'src/main/java/toad.toad/resource' in the project folder.
- Please add 'application-db.properties' to 'src/main/java/toad.toad/resource' in the project folder
- Please add the following to 'application-db.properties'.
spring.cloud.gcp.storage.credentials.location=classpath:{json 파일 이름]}
spring.cloud.gcp.storage.project-id={project_id}
spring.cloud.gcp.storage.bucket={bucket_name}