Page 1 of 1

Initial Code Setup

Posted: Tue Jul 28, 2015 2:06 pm
by Mohit
Hi,

I am new to broadleaf and could not understand the project structure I should keep at code level to implement my site. It would be great if I can get a few of my doubts clarified :
Where should I write the custom code that belongs to my site ?
Also how do I disable the import of the sample products and data belonging to the demo site ?
Is there any simple way provided by broadleaf to import data for a large number of products ?
The initial data like countries, currency etc need to be created by SQL statements in the .sql files or some other option is available ? and where is this configured ?

Thanks !

Re: Initial Code Setup

Posted: Wed Jul 29, 2015 12:50 am
by kunner
Hello,i'm newbie too.

I gotta tell you something what I know.

Where should I write the custom code that belongs to my site ?

- You can code anywhere you want.
but BLC guide us write your code each project you want.
If you want make admin features, you could write code in admin project.
and if you want to make site features, you could so.
But if you want effect both project, you would need to write in core project.

Also how do I disable the import of the sample products and data belonging to the demo site ?

- Open and see "/src/main/resources/runtime-properties/common-shared.properties" 121 line after.
blPU.hibernate.hbm2ddl.import_fiels= ...
You can add or remove each sql file.

Is there any simple way provided by broadleaf to import data for a large number of products ?
The initial data like countries, currency etc need to be created by SQL statements in the .sql files or some other option is available ? and where is this configured ?

- simple. use import_files.

then,
good luck!

Re: Initial Code Setup

Posted: Thu Jul 30, 2015 3:15 am
by Mohit
Thanks Kunner !