This is a dual-purpose repository for testing ideas with the marko language.
- Starter template for your project
- Demonstrating a bug
- Render via SSR
- Also navigate like an SPA with html5 push navigation
- User session with cookie-session. To use set
req.session.loggedIn = true
or whatever you need.
Environment variables:
HOST
the ip to bind to, defaults to127.0.0.1
PORT
the port to bind to, defaults to7162
COOKIE_SECRET
the secret forcookie-session
middleware
# setup
git clone https://github.com/tcrowe/isomorphic-marko-template.git
cd isomorphic-marko-template
npm install
# run the server
# it will not automatically open but you can open http://127.0.0.1:7162
npm run dev
open http://127.0.0.1:7162
# other scripts
npm run clean
npm run prd
It looks like this when you load it.
Copyright (C) Tony Crowe [email protected] (https://tcrowe.github.io) 2018
Thank you for using and contributing to make isomorphic-marko-template better.
npm run prd
before submitting a patch.
⚖️ isomorphic-marko-template is Free Software protected by the GPL 3.0 license. See ./COPYING for more information. (free as in freedom)