threads is a mess
- tags
Modern web development is so complicated. Does it need to be? Let's see how to make a site simply.
live-server
First we can start up a live server with
|
|
site/basic.html
|
|
uno.config.ts
:
|
|
Then create package.json
as
|
|
And set it up and run
|
|
Now we can replace
|
|
with:
|
|
node_module
We don't need node-modules
once we've copied out the files that we
need, so we can delete it and use npx
to run the build commands.
dev.sh
:
|
|
Then a quick
|
|
site/header.html
:
|
|
site/footer.html
:
|
|
site/remote.js
:
|
|
site/inline.html
:
|
|
site/remote.js
:
|
|
site/dynamic.html
:
|
|
template
tagsite/remote.js
:
|
|
site/template.html
:
|
|
Maybe we want our headers and components and whatever to be served in one request.
inliner.rb
:
|
|
|
|
site/alpine_header.html
|
|
site/alpine.html
|
|
site/loader.js
:
|
|
site/app.js
|
|
site/alpine_loader.html
|
|
site/profile.json
|
|
|
|
|
|
site/alpine_flash.html
:
|
|
The scenario now is to log into a site and store the bearer token
inside of localStorage
.
|
|
site/tezlab.js
|
|
site/alpine_login.html
|
|
Previously
Next