How to run sample applications

Sample applications are under the examples directory.

All sample applications except greeting and uploadexample were developed based on MySQL database. If you don't have a database on your computer, just run the non-database examples:

>java -jar tools/server.jar examples/greeting

Then browse the application with this url: http://localhost:8080/greeting

If you like to try a database-backed example, please do the following in order to run the sample applications. We use blog as an example.

  1. Create a database: mysql -u root < static/docs/blog_development.sql
  2. Open a terminal or command windown and enter the scooter directory
  3. Start web server: java -jar tools/server.jar examples/blog
  4. Browser: http://localhost:8080/blog