My next app builder
Develop and build full-stack React/Preact applications
- Webpack to bundle client and server
- Hot-reloading of client and server during development
- Code-split and async load routes on client
- Opinionated defaults, but customizable
See an example app.
Commands
mna
- Development build:
src
tobuild
- Watch for changes, rebuild and hot reload
- Serve static assets from
public
mna build
- Production build:
src
tobuild
- Copy
public
tobuild/public
Configure
Build config
app.config.js
Available properties: root, alias
Environment variables
Keep environment variables in env files: .env.development, .env.production
Make sure to exclude .env.production
from git repo.
Deploy
Use a process manager such as pm2
or forever
.
Credit
Thanks to ideas from: