Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

charanandra/charan

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React.js Blank

Maven archetype to create a react.js maven project

How to use

with Bash

mvn archetype:generate\
 -DarchetypeGroupId=am.ik.archetype\
 -DarchetypeArtifactId=maven-reactjs-blank-archetype\
 -DarchetypeVersion=1.0.0

with CommandPrompt (Windows)

mvn archetype:generate^
 -DarchetypeGroupId=am.ik.archetype^
 -DarchetypeArtifactId=maven-reactjs-blank-archetype^
 -DarchetypeVersion=1.0.0

Example

This blank project requires npm and gulp.

You need the following instruction:

$ npm install -g gulp

Create a project

$ mvn archetype:generate -B\
 -DarchetypeGroupId=am.ik.archetype\
 -DarchetypeArtifactId=maven-reactjs-blank-archetype\
 -DarchetypeVersion=1.0.0\
 -DgroupId=demo\
 -DartifactId=hello-react\
 -Dversion=1.0.0-SNAPSHOT

Initialize the project

$ npm install

Build the application

$ gulp build

or

$ gulp watch

open dest/index.html

Build jar

$ mvn clean package

The output of gulp are copied to target/classes/META-INF/resources/. So this jar can be used as WebJars.

License

Licensed under the Apache License, Version 2.0.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.