Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀
npm i nitro-web -D @nitro-web/webpack
"nitro-web": "workspace:*"
with "nitro-web": "~0.0.31"
"@nitro-web/webpack": "workspace:*"
with "@nitro-web/webpack": "~0.0.31"
"../core/.eslintrc.json"
with "./node_modules/nitro-web/.eslintrc.json"
# .env
in ./gitignore
npm i
On the client, you can import components and page-components as you would normally. See ./example for further info.
import { SigninPage, Toggle, util } from 'nitro-web'
On the server, you can import the express router, default models, and controllers. See ./example for further info.
import { setupRouter, util } from 'nitro-web/server'
const server = await setupRouter(config)
server.listen(3001, '0.0.0.0')
# Running in development (watching for changes)
npm run dev:server # run and watch the nodemon server
npm run dev:client # run and watch the webpack dev server
npm run dev # or run and watch both the server and client
# Building for production
npm run build
npm run start
The same run commands can be used in ./ which are actually executed in ./example/ via npm workspaces (-w
flag).
If util.js is updated, you must run npm run types
to update the types file.
^4.17
~3.5.1
^18
^18.3
^3.4
^5.92
pdf-to-img
pdfmake
react-chartjs-2
jest: ^29.7.0
migrate-mongo: ^10.0.0
eslint-plugin-jest: ^28.9.0