0.0.16 • Published 11 months ago
nitro-web v0.0.16
Nitro
Nitro is a battle-tested, modular base project to turbocharge your projects, styled using Tailwind 🚀
npm i nitro-webInstall
- Copy ./_example into your project
- In package.json, replace
"nitro-web": "file:.."with"nitro-web": "~0.0.16" - In package.json, replace
"../.eslintrc.json"with"./node_modules/nitro-web/.eslintrc.json" - Run
npm i
Usage
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
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 server and clientBuilding for production
npm run build
npm run startVersions
- Express
^4.17 - Monastery
~3.5.1 - Node
^18 - React
^18.3 - Tailwind
^3.4 - Webpack
^5.92
Common packages
pdf-to-imgpdfmakereact-chartjs-2jest: ^29.7.0migrate-mongo: ^10.0.0eslint-plugin-jest: ^28.9.0
Package notes
- Added twin.macro is required as a peer dependency to ./.
- Added tailwindcss^3 as a peer dependency to ./ to stop tailwind^4.0.0 from being installed