BedNap exists so developers can browse the source code and see for themselves how easy it is to piece together a working application with BedSheet and other libraries. Bed Nap also features acceptance tests that probe the generated HTML and verifies the markup.
As there are now a couple of fantom libraries that help you make web apps, I thought it may be useful to cobble together a simple application that shows I envisioned them being used.
The source code documentation is currently a bit light, but hopefully it's not too difficult to follow. I hope to find time to flesh it out but thought it could still prove useful as an example app, so I've released it as it is.
Create your own working web application by replicating Bed Nap in to a working directory. Do this with the following command, where podname is the name of your web application.
C:\> fan afBedNap -copyto C:\projects\ -podname myBedApp
Copied 25 files to 'C:\projects\myBedApp'
Bed App 'myBedApp' has been created!
This creates a copy of Bed Nap in C:\projects\myBedApp with the name myBedApp.
3. Run
You can now build, test and run your new web app straight away!
To build, move in to the directory you've just created and run:
SlimerDude Tue 21 Jan 2014
Bed Nap v0.0.2 Released!
BedNap
is a simple BedSheet application with master / detail screens that can be used as a template to kickstart your own Bed Apps.BedNap
exists so developers can browse the source code and see for themselves how easy it is to piece together a working application with BedSheet and other libraries.Bed Nap
also features acceptance tests that probe the generated HTML and verifies the markup.As there are now a couple of fantom libraries that help you make web apps, I thought it may be useful to cobble together a simple application that shows I envisioned them being used.
The source code documentation is currently a bit light, but hopefully it's not too difficult to follow. I hope to find time to flesh it out but thought it could still prove useful as an example app, so I've released it as it is.
Overview
1. Install
Install
Bed Nap
with the Fantom Repository Manager:2. Create
Create your own working web application by replicating
Bed Nap
in to a working directory. Do this with the following command, wherepodname
is the name of your web application.This creates a copy of
Bed Nap
inC:\projects\myBedApp
with the namemyBedApp
.3. Run
You can now build, test and run your new web app straight away!
To build, move in to the directory you've just created and run:
Test the app with fant:
Run the web application with:
And point your web browser at: http://localhost:8069/
4. Repeat
Feel free to modify the fantom source, web templates, and tests. To see the results, just rebuild the pod with
fan build.fan
and refresh your browser!Have fun!
: )