Skip to content

Instantly share code, notes, and snippets.

@gochev
Created February 26, 2016 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gochev/6d1db7e4f3804279b9e2 to your computer and use it in GitHub Desktop.
Save gochev/6d1db7e4f3804279b9e2 to your computer and use it in GitHub Desktop.
Ok steps to start your demo for Oramon
1st) add your settings.xml in m2 repo with the provided username and password
2th) if you are USING snapshots make sure you use the latest snapshot (they are downloaded only ones per day), because of that go to your .m2\repository\com and remove the "nemesis" folder so there is no older SNAPSHOT for the day. If you are usign 0.9 no need for cleanup.
3th) in some folder as an example D:\Projects\nemesis run:
mvn archetype:generate -DarchetypeGroupId=com.nemesis.archetype -DarchetypeArtifactId=samplestore-archetype -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=nl.oramon -DartifactId=nemesis-demo -Dversion=1.0-SNAPSHOT -Dpackage=nl.oramon.nemesis -Dproject-package=nl.oramon.nemesis -Dproject-name=Oramon -Dproject-bean-name=oramon -DarchetypeRepository=https://repository.nemesis.io/artifactory/libs-snapshot/ -DinteractiveMode=false
4th) cd nemesis-demo
5th) if you are using 1.0 go to nemesis-demo\storefront\src\main\resources\db\migration and remove ALL folders. If you are using 0.9 no need to do anything
6th) mvn clean install
7th) cd storefront
8th) YOUR database name should not contain invalid symbols. Go to your application-default.properties and specify a valid database name.
Go to application-default.properties and change the database name to oramon for example
run in command line:
mysql -u yourUsser -pPassword
create database oramon;
exit;
If you have old oramon database its better to drop it first, to be sure there will be no flyway migration issues. We support migration from 0.9 to 1.0 and so on but not between 1.0 snapshots
8th) mvn nemesis:initdb and make sure there are no errors
At some point durring initdb you should see something like that:
[INFO] Creating Metadata table: `oramon`.`platform_schema_version`
[INFO] Current version of schema `oramon`: << Empty Schema >>
[INFO] Migrating schema `oramon` to version 1.0 - THIS TAKES FEW MINUTES on NON SSD hard drive.
9th)
If on windows:
cd target
java -jar samplestore.war
Otherwise (linux and mac)
mvn spring boot-run
after that go to http://localhost:8111/storefront/?site=solar
For development :
- each time you do some entityChange in your project you need to remove SQL files from db/migration and rerun mvn nemesis:exportschema
- For all other changes just save the file and restart the server with mvn spring-boot:run on LINUX/MAC or mvn clean install on windows and java -jar target/storefront.war
KNOWN ISSUE:
if you have an issue saying Character Encoding INVALID not UTF-8 and the jar cannot be run just use
java -jar -Dfile.encoding="UTF-8" storefront.war
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment