Follow the screencast to export the project code and initial content from the CRX Bookstore project's svn server to your CRX.
In CRXDE Lite - the Develop button on the welcome screen - log in as administrator (admin/admin), go to Team > Checkout, and check out the following two projects into CRX:
- Application will get installed into /apps/bookstore
- URL: crxzon.googlecode.com/svn/trunk/apps/bookstore/
- Path: /apps/bookstore
- Click OK and wait for the console to show the summary of the operation
- Initial / sample data will get installed into /products
- URL: crxzon.googlecode.com/svn/trunk/products/
- Path: /products
- Click OK and wait for the console to show the summary of the operation
You can also use Svn Export command (Team > Export) to do the same if you do not need a SVN working copy in your repository.
Now, the only thing to have the running CRX Bookstore is to compile its executable library:
- Go to /apps/bookstore/src/impl/com.day.crx.sample.bookshop.bnd - this is the OSGi bundle definition for our library
- Use Tools > Build Bundle to build and deploy the code.
You are done with the development. Now, go to /products.html to see the running bookstore application.
- localhost:7402/products.html
Your sample application is up and running. Explore its functionality - it is just a sample, but it offers all the major functionalities of an online store.
Next, go back to CRXDE Lite and discover, how the application is build.
Finally, you might try to change or extend the application slightly. There's no better way to learn than to try things out yourself. And if you an interesting enhancement, new feature, or idea, feel free to contact CRX Bookstore project team to discuss how you could contribute this to the project. Or, if you are a project committer - just Checkin your changes from CRXDE Lite.
COMMENTS
Thanks.
Not sure what issues you were getting but here is what I am facing.
1) After checking out the code and data I dont see it in a folder structure as shown in the screen shots. For example I dont have a bookstore folder under apps but folder structure like /apps/src/impl...
2) When I try to build I get the following 3 errors:
The method listChildren() is undefined for the type Resource. /apps/src/impl/src/main/java/com/day/crx/sample/bookstore/Account.java (line 46)
The method listChildren() is undefined for the type Resource. /apps/src/impl/src/main/java/com/day/crx/sample/bookstore/Order.java (line 91)
le cannot be resolved. /apps/src/impl/src/main/java/com/day/crx/sample/impl/RankingServiceImpl.java (line 140)
Thanks
Imran
1)Description Resource Path Location Type
le cannot be resolved RankingServiceImpl.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl line 140 Remote Compile Problem
2)LoginException cannot be resolved to a type RankingServiceImpl.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl line 138 Remote Compile Problem
3)resourceResolverFactory cannot be resolved or is not a field RankingServiceImpl.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl line 129 Remote Compile Problem
4)ResourceResolverFactory cannot be resolved to a type RankingServiceImpl.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl line 81 Remote Compile Problem
5)The import org.apache.sling.api.resource.LoginException cannot be resolved RankingServiceImpl.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl line 35 Remote Compile Problem
6)The import org.apache.sling.api.resource.ResourceResolverFactory cannot be resolved RankingServiceImpl.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl line 38 Remote Compile Problem
7)The method getName() is undefined for the type Resource Order.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore line 88 Remote Compile Problem
8)The method listChildren() is undefined for the type Resource Account.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore line 46 Remote Compile Problem
9)The method listChildren() is undefined for the type Resource Order.java /localhost_6001/WebContent/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore line 91 Remote Compile Problem
Can any one help me...
The type JcrResourceResolverFactory is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl/RankingServiceImpl.java
79
3045
The method getResourceResolver(Session) from the type JcrResourceResolverFactory is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl/RankingServiceImpl.java
127
4682
The field Query.XPATH is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl/RankingServiceImpl.java
248
10615
The field Query.XPATH is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/impl/RankingServiceImpl.java
271
11591
The method getName(Resource) from the type ResourceUtil is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/Order.java
88
2802
The method listChildren(Resource) from the type ResourceUtil is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/Order.java
91
3053
The method listChildren(Resource) from the type ResourceUtil is deprecated
/apps/bookstore/src/impl/src/main/java/com/day/crx/sample/bookstore/Account.java
47
1834
Also are you using the bookstore example package?
According to the naming/filing in package share, the bookstore example was designed for CRX 2.1.0.
I can't import bookstore example. I'm in Chrome (16.0.912.75 m) on Vista 64-bit.
Console Output upon trying to do import:
IMPORT /apps/bookstore (2012-01-14 18:11:08)
svn: MKACTIVITY of '/svn/!svn/act/c31d7dde-3401-0010-8fd9-9ff16f3d1a28': 405 Method Not Allowed (crxzon.googlecode.com) svn: MKACTIVITY request failed on '/svn/!svn/act/c31d7dde-3401-0010-8fd9-9ff16f3d1a28'
Thanks!
Note: Customers with DayCare user accounts need to create a new account for use on day.com.