Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorishermans/devoxx_hello_app
my demo app from devoxx
https://github.com/jorishermans/devoxx_hello_app
Last synced: 30 days ago
JSON representation
my demo app from devoxx
- Host: GitHub
- URL: https://github.com/jorishermans/devoxx_hello_app
- Owner: jorishermans
- Created: 2014-11-14T12:47:23.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-08T17:19:42.000Z (almost 10 years ago)
- Last Synced: 2023-04-03T17:32:21.851Z (almost 2 years ago)
- Language: Dart
- Size: 263 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
devoxx hello app
================This is a demo app of forcemvc that I created to show how easily it is to copy java spring mvc code and translate it into dart code.
This is the java controller code:
@Controller
public class HomeController {
private static final Logger logger = LoggerFactory.getLogger(HomeController.class);
// Simply selects the home view to render by returning its name.
@RequestMapping(value = "/", method = RequestMethod.GET)
public String home(Locale locale, Model model) {
logger.info("Welcome home! The client locale is {}.", locale);
Date date = new Date();
DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.LONG, locale);
String formattedDate = dateFormat.format(date);
model.addAttribute("serverTime", formattedDate );
return "home";
}
}
And in this example you see the resembling dart code of it!