https://github.com/bcopy/gridsome-maven
A Gridsome starter project with support from Apache Maven and Spring Boot
https://github.com/bcopy/gridsome-maven
example-project gridsome maven spring-boot vuejs
Last synced: about 2 months ago
JSON representation
A Gridsome starter project with support from Apache Maven and Spring Boot
- Host: GitHub
- URL: https://github.com/bcopy/gridsome-maven
- Owner: bcopy
- Created: 2022-05-20T21:02:41.000Z (about 4 years ago)
- Default Branch: develop
- Last Pushed: 2022-08-23T13:34:14.000Z (almost 4 years ago)
- Last Synced: 2025-02-12T20:43:26.353Z (over 1 year ago)
- Topics: example-project, gridsome, maven, spring-boot, vuejs
- Language: Vue
- Homepage:
- Size: 317 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gridsome starter project with Maven
Why even ? Maven and the excellent [frontend plugin](https://github.com/eirslett/frontend-maven-plugin) provide a virtual environment for NPM-based development :
* :relieved: Experiment safely with Node and NPM without messing with your operating system.
* :muscle: Let Maven handle the heavy-lifting related to Git flow releasing and versioning.
* :rocket: Build a custom GraphQL back-end on top of Spring Data to migrate those pesky legacy relational datasources in no-time.
## How to boostrap your own Maven and NPM project
You need to register a Maven POM file using the Frontend plugin, as described on the [plugin homepage](https://github.com/eirslett/frontend-maven-plugin). Your configuration should specify the Node and NPM installation, here for instance with Node v12.x and NPM v6.x :
```xml
com.github.eirslett
frontend-maven-plugin
1.12.1
${project.basedir}
v12.18.3
6.14.8
install node and npm
install-node-and-npm
npm install
npm
npm run build
npm
run build
```
Create a source folder, install NPM, extend your PATH then use ``npm init`` to create your ``package.json`` :
```bash
mvn com.github.eirslett:frontend-maven-plugin:install-node-and-npm
export PATH=`pwd`/node:`pwd`/bin:$PATH
npm init
```
You can then install the Gridsome CLI with :
```bash
npm install --global --save @gridsome/cli
```
And create your new website :
```bash
gridsome create site
```
## Add support for BootstrapVue
```bash
cd site
npm i bootstrap-vue bootstrap
```
Happy coding 🎉🙌