I got an assignment to create a simple application in Spring Boot that uses a Postgres database and the project has to be done using Git. When I deliver the git repository containing the application I have to also somehow deliver the SQL server with the database and I have no idea how to do that. Googling didn't help this time.
CodePudding user response:
Your application, when started up the first time - or some installer could actually check for Postgresql presence, the credentials, write a config file and populate the database.
For populating and later migrating the database Liquibase is a really handy tool.
If you want to go further it would mean you bundle your application with postgres, not really something I would go for. But in theory you could use the java packager to create a native installer package. This one defines the dependency to postgresql, and at least that part is done.
Of course the two links are just hints on a very high level.
CodePudding user response:
You can use heroku to deploy your application it is good platform where you will get a database of postgreSQL.