Skip to content

Commit b8b3a57

Browse files
committed
Initial commit
0 parents  commit b8b3a57

19 files changed

+2044
-0
lines changed

.gitignore

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/dist/
2+
/build/
3+
/target/
4+
5+
/nbproject/
6+
build.xml
7+
manifest.mf
8+
9+
10+
/downloads/
11+
**/javaxt-*.js
12+
13+
14+
/logs/
15+
*.log
16+
17+
18+
*.DS_Store
19+
*.dll
20+
**/!README.TXT
21+
22+
23+
__pycache__/

README.md

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Introduction
2+
3+
4+
## Maven Quickstart
5+
```
6+
git clone https://github.com/javaxt-project/javaxt-express-demo.git
7+
cd javaxt-express-demo
8+
mvn install
9+
java -jar dist/express-demo.jar" -version
10+
```
11+
12+
Note that during the build, maven will download JavaScript files to support the demos.
13+
JavaScript files are downloaded into the `downloads` folder and then copied into individual
14+
demo folders.
15+
16+
17+
## Demos
18+
19+
- CMS
20+
- CRUD
21+
22+
23+
24+
## Dev Notes
25+
Update the .gitignore to exclude JavaScript folders copied during the maven build.

demos/cms/Basic/about/index.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<title>About Express</title>
2+
3+
<h1>About this Site</h1>
4+
5+
<p>
6+
This is a demo site built using javaxt-express.
7+
</p>

demos/cms/Basic/favicon.ico

1.12 KB
Binary file not shown.

demos/cms/Basic/images/back_gry.gif

236 Bytes
Loading

demos/cms/Basic/images/sprite.gif

1.2 KB
Loading

demos/cms/Basic/index.html

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<title>Express CMS Demo</title>
2+
3+
<h1>Welcome!</h1>
4+
<p>
5+
The JavaXT Express CMS is a simple web server built using
6+
<a href="http://www.javaxt.com/" target="_blank">JavaXT</a>.
7+
It is intended to help developers to get a web server up and running quickly.
8+
If you're reading this page, you're well on your way!
9+
</p>
10+
11+
<p>
12+
This demo has several cool features:
13+
</p>
14+
<ul>
15+
<li>Live updates</li>
16+
<li>Efficient page fetching</li>
17+
<li>Automated versioning of js and css files for proper caching</li>
18+
<li>Fail-safe fallback for browsers that don't have javascript enabled</li>
19+
</ul>
20+
21+
22+
<h2>How to customize this site?</h2>
23+
<p>
24+
Now that you have your server up, you are ready to start adding content by
25+
adding or editing files in the "Basic" CMS demo directory.
26+
</p>
27+
28+
29+
30+
31+
<p>
32+
The CMS relies on a template file (e.g. "template.html") found in the "style" folder
33+
that defines the general look and feel of the website.
34+
</p>
35+
36+
<p>
37+
Content for individual pages are separated into individual text files (e.g. *.txt or *.html files).
38+
These text files contain html snippits that are injected into the template at runtime.
39+
</p>
40+
41+
<p>
42+
You can start by editing one of the html files in the "Basic" demo directory (e.g. index.html).
43+
</p>
44+
45+
<p>
46+
Note that you do not have to restart the server to see the changes.
47+
If you have JavaScript enabled, the website will refresh automatically.
48+
Otherwise, all you have to do is refresh the browser.
49+
50+
</p>
51+
52+
<h2>Tabs</h2>
53+
54+
55+
<p>
56+
You can add and remove tabs by updating the tabs.txt file. Note that the
57+
tab file has a &lt;%=Path&gt; tag. This tag will be replaced with a relative path
58+
to the root directory. This is handy when hosting/supporting subsites. There are
59+
many similar tags. You can learn more <a href="/wiki/known_tags/">here</a>.
60+
</p>
61+
62+
63+
<h2>Additional Information</h2>
64+
65+
<a target="_blank" href=
66+
"https://www.javaxt.com/javaxt-express/express/cms/">
67+
https://www.javaxt.com/javaxt-express/express/cms/
68+
</a>

demos/cms/Basic/style/2010/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 2010 Style
2+
3+
This folder contains a throwback style that resembles the javaxt.com website circa 2010.
4+
5+
## How to Use
6+
7+
To apply this style, simply copy the contents of this directory into the parent `style` directory. The server should automatically pick up the changes. All you need to do is refresh your browser.

0 commit comments

Comments
 (0)