An open API service indexing awesome lists of open source software.

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

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 🎉🙌