Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Backend + Vue.js Frontend Template

With GitHub Actions, Docker Compose, Dockerfiles, JPA, and Example Data to Get You Started 🚀

Everything you need to kickstart your Spring Boot + Vue.js project for [the DAT 3rd-semester exam]. 🌟

Created: November 2024
⚠️ Check versions and update GitHub Actions or dependencies as needed.


Installation

  1. Clone this repository:
    git clone https://github.com/empasquer/springboot-vue-template.git
  2. You're ready to go!

Usage

  1. Ensure Docker/OrbStack is installed and running.

  2. Ensure no other applications are running on the ports used (8080, 5173, 3307)

  3. Start your application:

    docker-compose build --no-cache
    docker compose up -d
  4. To stop the containers:

    docker compose down
  5. Verify running containers:

    docker ps

    For more Docker Compose commands, refer to the official documentation.

  6. Access your application:

⚠️ It may take the db some time to get initialized - breathe for 30 seconds and it should be alright then.

🎉 Your app is now running. Great job!


Customizing the Project

Here are a few steps to make this template your own:

  • Rename the folder to match your project.
  • Refactor the project name, application name, and metadata as needed.
  • GO TO compose.yml and change all environmental variables to your own (⚠️ messes with the test data)
  • In that same file, make sure to comment and uncomment which profile you want to use (details in file)
  • Review and modify the provided data examples in the data/ directory.
  • Check the src/configs folder:
    • InitDataExample.java: Examples for populating your database with JPA.
    • WebConfig.java: Customize if necessary, but keep a backup copy.

Backend: Spring Boot

  • JPA entity examples can be found in the models/ folder.
  • Check InitDataExample.java for guidance on working with JPA.

Frontend: Vue.js

  • Modify App.vue to reflect your data fetching needs using fetch or axios.

Optional: Add Tailwind CSS

To enhance your frontend styling, you can install Tailwind CSS with the following steps:

  1. Install the necessary dependencies:
    npm install -D tailwindcss@latest postcss@latest autoprefixer@latest
  2. Initialize Tailwind:
    npx tailwindcss init -p
  3. Configure and start using Tailwind! 🎨

For more customization tips, refer to the Tailwind CSS documentation.


Helpful Links


Final Notes

This template provides a great starting point for your project. Customize it to suit your needs and start building something amazing! 🚀

Enjoy!
Emma

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages